[wplug] cron
Bob Schmertz
rschmertz at speakeasy.net
Thu May 15 16:44:07 EDT 2003
On Thu, 15 May 2003, Chris wrote:
>I am having problem with some cron jobs and I really don't know how to debug
>it.
>
>Here is what's going on. In my cron.daily dir, I have a script called
>myscripts. That script just calls 6 other scripts that I wrote. Up until
>about a week or so ago, everything was working just fine. Now only the
>first 3 scripts are executed. Here is myscripts:
>
>#!/bin/sh
>
>#Echo to log file for script check
>/bin/echo "-------------------------------------------" >> tmp/myscript.log
How come there's no / at the beginning of that line? Probably not the
problem, though.
>/bin/echo `date` >> /tmp/myscript.log
>
[snip]
>/bin/sleep 1h
>
>#Execute custom scripts
>/bin/bash /root/scripts/Rydexftp.sh
>/bin/bash /root/scripts/Putnam.sh
>/bin/bash /root/scripts/DAZLftp.sh
>/bin/bash /root/scripts/DSTftp.sh
>
>#State that it finished
>/bin/echo "My Daily Cron Tab Script Ended `date`" >> /tmp/myscript.log
[snip]
>
>It dies between the Rydexftp.sh script and the Putnam.sh script. I looked
>in /var/log/cron but there was nothing about any of the scripts in there.
>Does cron produce any other logs?
>
Cron mails the output of your scripts to the owner of the cron job, in
this case, root. Check your mail as root.
--
Cheers,
Bob Schmertz
More information about the wplug
mailing list