>Aengus and others,
>
>>You don't need to use perl to do scheduling on NT. You can schedule a 
>>job to run using the AT command, and, depending on how complex your 
>>requirements are, a simple 3 line batch file may be sufficient.
>>
>>CD /D x:\folder\Analog
>>for /f "tokens=2,3 delims=/ " %%f in ('date /t') do set today=%%f%%g 
>>ANALOG y:\folder\ex00%today%.log
>>
>>(You can make it much more complex than this if you want, but this will 
>>run Analog against the IIS log file with todays date. It works well for 
>>sites west of GMT, where the log file rotates before the end of the day, 
>>but you might have to make it a bit more complex for locations east of 
>>GMT, where you need to use yesterdays date).
>
>Many thanks for replying me.
>
>I have two more questions:
>
>Looks like I can use AT command to run analog automatically. How to write a 
>AT command--on my Windows NT server. My Analog is located on E:\Analog and 
>log files are located on c:\winnt\system32\logfiles\w3svc1\in*.log
>
>After writing the AT command on a file how should I name the file and where 
>should I put it.

The AT command just takes a single command, so you write a batch file like the 
3-liner I showed, and call that with the AT command.

So you just type

AT 23:00 /every:m,t,w,th,f,s,su "x:\analog\automatic.bat"

(Of course, you make sure that your batch file works as expected before you run 
it under the scheduler, and then you practice by running the AT command 1 minute
ahead of the current time. Incrementalism is the best way to approach this. 
People often trip over their directory structure when doing this, so use 
explicit drive and directory references in your batch files, and in your Analog 
configuration files).

Aengus
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to