Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Crontab entry for Perl script

by wardk (Deacon)
on Aug 14, 2001 at 22:21 UTC ( [id://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?
Username:
Password:

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

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

    No recent polls found