Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: Cron or running process?

by l3nz (Friar)
on Apr 29, 2004 at 17:46 UTC ( [id://349213]=note: print w/replies, xml ) Need Help??

in reply to Re: Cron or running process?
in thread Cron or running process?

I'd go for cron, keeping in mind that:
  • It could hang and not work (though the same could be for your own code, and I guess that would be more likely than cron itself)
  • More than one instance of your script could be running at the same time. Play it safe and check before doing things that will break if done by two different process at once. Having a database backend with transactions might help.
  • Log, log and log again. You want to know whether your thing ran, whether it completed okay, what went wrong. Log it before, don't wonder what went wrong afterwards.
I guess this is my $0.02

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 10:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found