I need help creating a script
|
Original Message
|
Name: unc27560
Date: January 28, 2008 at 11:47:06 Pacific
Subject: I need help creating a script OS: 2003CPU/Ram: 3 |
Comment: Hello, I am hoping one of you guys can help me create a script. I am a support engineer, with GFI. We develop secuirty and message software. We have a spam product (Mail Essentials), that will fail to process messages at times, due to several enviroment variables. The problem is there is no "alerting" for our customer that this is happening other than "alot of spam is getting into my Inbox. We have a text file named mtastr.txt which is typically installed to c:\program files\gfi\mail essentials\gfimon. I would like a script that can be set up on a schedule task that will parse this file and look for "Item processed unsuccessfull". I then would like for the script to send an email to the adminstrator reporting this. You guys have always been very helpful, I hoping you have time to help with this as well. Thanks in advance for your time. Jimmy
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Mechanix2Go
Date: January 28, 2008 at 12:07:38 Pacific
|
Reply: (edit)@echo off find "Item processed unsuccessfull" < "c:\program files\gfi\mail essentials\gfimon\mtastr.txt" > nul if errorlevel 1 goto :eof echo mailto admin bla bla
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: