Hello Daryl,

At 09:05 AM 8/20/2002 -0500, Daryl J. Hoyt wrote:
>       I am looking for a way to run something like a cron job on windows.  I
>would like to check every 10 minutes to see if an application is running.
>If it is not running, I would then like to launch it.  Is there a way to do
>this in Perl (or any other way)?  Any help would be appreciated.

My personal favorite way is to use Cygwin (http://cygwin.com/) which comes
with perl and a whole bunch of other OpenSource software including services
such as cron, sshd, rsh, apache.  To register cron as a service, type this:
  cygrunsrv.exe -I crond -p /usr/sbin/cron.exe -a '-D' -e CYGWIN=ntsec
To start the cron service, type this:
  cygrunsrv.exe -S crond 
To stop the cron service, type this:
  cygrunsrv.exe -E crond

To begin to use it, type crontab -e.

HTH,
- Robert


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to