in reply to cron (scheduling) Mail job under Windows

Depending on your flavour of Windows, you can use either the "AT" command, or the windows scheduler (Scheduled tasks under control panel) to get cron-like functionality.

I would take out all the SLEEP commands, and schedule the task to run periodically, using the scheduler.

If you really want to be a perl-timed control freak, you can do that by making your program into a service. See documentation for SRVANY in the Windows Resource Kit.

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.

Replies are listed 'Best First'.
Re: Re: Mail Test Script
by Thelonius (Priest) on May 05, 2004 at 21:52 UTC
      Thanks for the link. The main problem with using the Windows Task Schedular though is that it pops up in a window every time it runs.
        Assuming that you are using an ActiveState distribution... Look at using wperl.exe to run your app instead of perl.exe.