Cron script crashing server...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ian mu wrote:
 > Basically I have a perl script that runs once, first thing every
 > morning, gathering some stats (currently turned off due to problem).
 > Crontab -l shows the following...
 >
 > 00 6  * * * nice /home/statsman/stats/run_stats.sh  >/dev/null 2>&1 (.sh
 > file basically sources with full path a config with some vars, then runs
 > the perl script).

The first thing I would do to put some echos in run_stats.sh
and change > /dev/null to > /path/somefile

If you're getting as far as the perl script, put some print
statements in it.

You might try doing an strace from cron:

00 6  * * * strace -f -oOutputFile /home/statsman/stats/run_stats.sh  >/path/somefile 2>&1

-Mark


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux