Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Cron or running process?

by freddo411 (Chaplain)
on Apr 28, 2004 at 20:49 UTC ( [id://348947]=note: print w/replies, xml ) Need Help??


in reply to Cron or running process?

Use cron. Cron essentially acts like a running process that fires off things when necessary, (yes, I know that this isn't strictly true...) why reinvent the wheel?

That being said, cron does have a few gotchas:
* Funny things happen when DST kicks in or out (you can search perlmonks for my recent thread on this.)
* Scripts run from cron have a pristine environment, without a normal path env var etc, etc. You must keep this in mind when coding your scripts.

Editing a crontab file to schedule your scripts is not at all difficult. Consult man crontab for details.

-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found