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

Re: Crontab entry for Perl script

by wardk (Deacon)
on Aug 14, 2001 at 22:21 UTC ( #104851=note: print w/ replies, xml ) Need Help??


in reply to Crontab entry for Perl script

thoughts about running from cron...

  • you need to setup environment assuming you inherit nothing from cron or your home .profile/.login/etc.
  • open a log file and write to it, so you have an audit trail, what I have done is created a standard log routine that I feed a message to, it writes out the time and the message. This is handy for scripts that serially work though a process, I when each step started/ended, and what happened. One thing you could do for debugging is dump your %ENV hash out to verify environment.

    Since this executes fine from the command line, once you get your cron ENV setup to mimic your login environment, you should be good to go.

    good luck!


Comment on Re: Crontab entry for Perl script

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-10-23 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls