Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Scheduling a PERL script

by Anonymous Monk
on Oct 06, 2001 at 00:12 UTC ( [id://117097]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi , I have a PERL script which I need to run only once a week at a particular time. Could I trigger the Perl script to run automatically at the predetermined time? What is the best way to do this scheduling. I'm on a Windows machine. Need some help on this. Thanks!!

Replies are listed 'Best First'.
Re: Scheduling a PERL script
by thatguy (Parson) on Oct 06, 2001 at 00:28 UTC
Re: Scheduling a PERL script
by Albannach (Monsignor) on Oct 06, 2001 at 00:29 UTC
    While you could have your Perl app kill time using sleep, it would still be sitting in (virtual) memory which seems rather silly for a once-a-week task. The conventional approach is to use the unix cron utility or under NT the at command. Here's a discussion with some useful information, or you could feed Super Search some keywords like qw(Win32 NT cron at) and see what else appears.

    --
    I'd like to be able to assign to an luser

Re: Scheduling a PERL script
by RayRay459 (Pilgrim) on Oct 06, 2001 at 01:49 UTC
    I use this unix toolset for NT called AINTX. It works really well. i have used the cron feature on this with much success. the url is:
    http://maxx.mc.net/~jlh/nttools/html/nttools.htm
    You can also use Task schedular that comes on win32 products or have your script sleep for 604800 seconds :)
    Ray

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://117097]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-16 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found