Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://104851]
and not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-12-11 13:57 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (295 votes). Check out past polls.