Re-directing issue.

Hi All,

Have scheduled a cron entry to run once a week.

0 0 * * 1 /export/home/nz/history_load/prod/LoadManager.sh >>/dev/null 2>&1 

Not sure, why this job did not got triggered last week. Want to know the reason behind not getting triggered.

I was re-directing the output of the command to >>/dev/null 2>&1
instead of logfile. Please let me know is there a way to chek this?

Thanks and Regards
Nagaraja Akkivalli.

Maybe the server was down when the cron job was supposed to run?

I would just say > /dev/null but it doesn't matter.

/var/log/syslog or similar logfile maybe with different name on different system should record what happens every time a cron job runs. Browse or grep that file.

You can crontab -e to make the job run sometime when you are around and you can monitor what happens.

You might as well direct the output to some log files so you'll never be in the dark:

> $HOME/mydir/cron-job-log.stdout 2> $HOME/mydir/cron-job-log.stderr
1 Like