[PLUG] cron problem
Robert Citek
robert.citek at gmail.com
Thu Oct 25 21:11:11 UTC 2007
On 10/25/07, Richard C. Steffens <rsteff at comcast.net> wrote:
> Recommendations?
Run this script:
true ; (
crontab -l > crontab.bak
echo "* * * * * date > /tmp/date.txt" > crontab.new
crontab crontab.new
crontab -l
echo -n > /tmp/date.txt
watch -n 1 'date ; cat /tmp/date.txt'
)
Initially, you should see just the output from the date command. Then
at the top of the minute, you should see the output of the date
command above the output of the date.txt file. Also the output of the
date.txt should change every minute. Do you see that?
If you do, then your crond deamon is working. you can restore you
original crontab with this command: crontab crontab.bak
If you don't, then as root restart your crond deamon with
/etc/init.d/crond restart
Also, you can rewrite those last two lines like so:
1-59/5 * * * * /home/rsteff/ShellScripts/x10-lights-on.sh
3-59/5 * * * * /home/rsteff/ShellScripts/x10-lights-off.sh
Regards,
- Robert
More information about the PLUG
mailing list