The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-02-2009
scottn scottn is offline Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,134
If you direct (as most people do) the stderr and stdout to /dev/null in the crontab file, remove this, then check your mail to see what, if any error you receive.

zum Beispiel:

0 0 * * * myJob > /dev/null 2>&1

(remove the "> /dev/null 2>&1" part)

i.e. standard ourput and standard error goes to the mailbox of the owner of the job (unless you throw it away to /dev/null). This is usually a good place to look for why the job did not finish as you expected.

---

by "check your mail" I mean (logged in as the user who starts the job) run "mail". You should see something like "cronjob .... produced the following output" (or some such)

Last edited by scottn; 07-02-2009 at 07:52 PM..