Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

(atl: include type of failure) RE: cronjobs and perl

by atl (Pilgrim)
on Sep 18, 2000 at 15:05 UTC ( [id://32937]=note: print w/replies, xml ) Need Help??


in reply to cronjobs and perl

Ahem, I´d really like to help, but without any hint on the type of failure, it will be impossible. Surely you´ll agree that the possibilities for failure are countless, even on a properly configured system (let alone a bad or BOFH system;
<BOFH>
think of it: configure cron to run with a chroot environment, the users will never figure out what´s the problem! {veg}
</BOFH>
).

To aid your search for information:

  • There should be a mail, sent to root, after the failure of one or more cron jobs. Look there for exit codes and/or messages.
  • Rewrite your script to send a message to the syslog (or a file in /tmp, use a unique name including a timestamp) first thing (even before useing libraries. If you get the message, your script did start up and found a perl interpreter, so put in new debug messages. Otherwise, your perl installation might not be in the search path.

If you got more details, post a followup. We´ll be here :-).

Have fun ...

Andreas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2024-04-23 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found