Cron runs twice a day?

Ben Yau byau at cardcommerce.com
Mon Mar 1 11:35:03 UTC 2004


> -----Original Message-----
> From: redhat-list-admin at redhat.com
> [mailto:redhat-list-admin at redhat.com]On Behalf Of Ian Dobson
> Sent: Monday, March 01, 2004 8:36 AM
> To: redhat-list at redhat.com
> Subject: Re: Cron runs twice a day?
>
>
>  My crontab is as follows
> 01 * * * * /usr/bin/run-parts /etc/cron.hourly
> 02 1 * * * /usr/bin/run-parts /etc/cron.daily
> 20 1 * * 0 /usr/bin/run-parts /etc/cron.weekly
> 40 1 1 * * /usr/bin/run-parts /etc/cron.monthly
>
> tasks in the cron.daily run at 1:02 and 4:00am
> tasks in cron.weekly run at 1:20 and 4:00am
> what is running the tasks a second time?
>

Two things to check
1) what are the usr crontabs ?  Perhaps you are running something in root's
crontab ?
2) check the /etc/cron.* directories to see if you accidentally made a copy
of a file.  I for example usually make a copy of a file if i'm going to edit
it so I could easily do something like :

prompt# cp /etc/cron.daily/slocate.cron /etc/cron.daily/slocate.cron.orig
prompt# vi /etc/cron.daily/slocate.cron
prompt# logout

and then cron woould be running slocate twice (slocate.cron and
slocate.cron.orig)







More information about the redhat-list mailing list