Here's one that I made up, it might point you in the right direction.. :)
It uses (3) great little utilies rasdial-to dial out, sleep-for time dely and
ftpbatch to uplaod...


@echo off
: rem last updated Thursday, June 22, 2000 03:06:47 PM
: rem This is a test of up-loading an html file
: rem with dialing out and checking for a change in the file.
: rem This will check the current html for a "down" switch
: rem and move html to a hold directory..

find /I/C "down" c:\utils\salive\status.html
if errorlevel 1 goto :no_down
if errorlevel 0 goto :found_down
goto: end

:found_down
: rem Here is were you would place the dial-out part... ras_dial
: rem change ftp as needed..
: rem insure disconnected before start
c:\utils\ras_dial\rasdial95 /DISCONNECT
c:\utils\ras_dial\rasdial95 call_out *** **** /DOMAIN:*** /RETRYCOUNT:4
: rem c:\utils\ras_dial\rasdial95 call_out *** **** /DOMAIN:**** /PHONE:***********
if errorlevel 1 goto :dial_error
if errorlevel 0 goto :wait
goto :end

:wait
: rem sleep 10 to insure dial_up completed before ftping
: rem sleep for (2) seconds
c:\utils\sleep for 2

echo start ftp
c:\utils\ftp_batch\ftpbatch u ftp.****** *** ****** / c:\utils\salive status.html a s
echo stop ftp

: rem sleep 120 to insure ftp completed before hang-up
: rem sleep for (2) minutes

c:\utils\sleep for 120


: rem Here is were you would place the hang_up part... ras_dial

c:\utils\ras_dial\rasdial95 /DISCONNECT

goto :copy_it
goto :end



:no_down
echo none down
find /I/C "down" c:\utils\salive\hold_old\status.html
if errorlevel 1 goto :copy_it
if errorlevel 0 goto :found_down
goto: end

:copy_it
copy c:\utils\salive\status.html c:\utils\salive\hold_old\status.html
goto :end

:dial_error
: rem local dial-up error, trying ****
c:\utils\ras_dial\rasdial95 call_out **** **** /DOMAIN:*** /PHONE:********
if errorlevel 1 goto :end
if errorlevel 0 goto :wait
goto :end

:end



At 12:43 PM 8/18/03 -0500, you wrote:
>>>>


I would like to have a check that analyzes a text file for specific info. For example test.txt should not contain error. This would be useful for analyzing a multitude of log files from other programs. I would assume it would be relatively easy to add. I know that it would probably possible to script my own but I think that this would be beneficial to many others. If anyone has script written that is doing this I would appreciate some direction in scripting this.



Jason Passow

Mississippi Welders Supply

<http://www.mwsco.com>www.mwsco.com

<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]

Phone: (507) 454-5231

Fax: (507) 454-8104



<<<<



Regards,

Gene
[EMAIL PROTECTED]
http://www.eclipse.net/~njkat To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive

Reply via email to