Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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?
Username:
Password:

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

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

    No recent polls found