Re: Cron won't run
On Sat, 2 Oct 2004, David wrote:
> Date: Sat, 2 Oct 2004 23:25:13 -0400 (EDT)
> From: David <debian@startupanywhere.org>
> To: debian-testing@lists.debian.org
> Subject: Cron won't run
> Resent-Date: Sat, 2 Oct 2004 22:26:03 -0500 (CDT)
> Resent-From: debian-testing@lists.debian.org
>
> All,
>
> I have been unable to figure out why cron won't work. The system is debian testing
> with just regular cron on it. I can stop and restart the cron process just fine,
> but it never runs. I can manually run-parts /etc/cron.daily and it completes just
> fine in a few minutes. But every morning I find that I have to run it manually
> because cron didn't run the daily stuff.
>
> This seems like a really basic simple thing, but I can't figure out what to do to
> fix this problem. Any help will be GREATLY appreciated!
>
> Thanks,
> David
Check your /etc/crontab file it may have wrong sytax which you can
check from your system log.
I am pasting some lines from my crontab in the hope that it helps you
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.
SHELL= /bin/bash
PATH= /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#run-patrs
#minute hour dayofmonth month dayofweek
# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
#25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
25 3 * * * root nice -n 19 run-parts --report /etc/cron.daily
#47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
47 6 * * 7 root nice -n 19 run-parts --report /etc/cron.weekly
#52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
52 6 1 * * root nice -n 19 run-partsrun-parts --report /etc/cron.monthly
#
>
Reply to: