Re: CRON mystery


Subject: Re: CRON mystery
From: Randall Perry (rgp@systame.com)
Date: Wed Aug 15 2001 - 15:54:07 MDT


I figured it out. You'd never guess.

Got a bad clock on a 7200 and have a ntp time server script that runs every
hour (at 0 minutes). The clock is fast, and is badly off, so it's actually
2:00 am twice, once before and after the ntp job runs. So any job running
exactly on the hour is in danger of running twice.

>
> From: Randall Perry <rgp@systame.com>
> Reply-To: yellowdog-general@lists.yellowdoglinux.com
> Date: Wed, 15 Aug 2001 11:20:23 -0400
> To: YDL <yellowdog-general@lists.yellowdoglinux.com>
> Subject: CRON mystery
>
> I have a cron job that runs every day at 2AM:
> 0 2 * * * /usr/local/bin/perl
> /home/randy/perl/clean/ftp_server_backup_1.0.pl
>
> For some reason, cron runs this twice every night at 2AM:
>
> [root@ftp cron]# cat /var/log/cron | grep backup
> Aug 13 01:59:59 ftp CROND[21393]: (root) CMD (/usr/local/bin/perl
> /home/randy/perl/clean/ftp_server_backup_1.0.pl)
> Aug 13 02:00:01 ftp CROND[21402]: (root) CMD (/usr/local/bin/perl
> /home/randy/perl/clean/ftp_server_backup_1.0.pl)
>
> There are no duplicate cron jobs for other users with the same script
>
> Anyone ever had this happen? Should I re-install CRON, or recreate the
> crontab file?
>
> --
> Randy Perry

-- 
Randy Perry
sysTame
Mac Consulting/Sales

phn 561.589.6449 mobile email help@systame.com



This archive was generated by hypermail 2a24 : Wed Aug 15 2001 - 14:58:38 MDT