SUMMARY: Daylight Savings Time and cron

From: Senn, Bruce <sennb_at_union.edu>
Date: Mon, 08 Apr 2002 11:38:35 -0400

Thanks to Martin Moore of Compaq.

There was a bug in 4.0D, fixed in V4.0f and higher, and in patch kits for earlier versions. The fix is supposed to be in 4.0d patch kit 3 (and later). The last 4.0d patch kit (#9) is available from

(http://ftp.support.compaq.com/public/unix/v4.0d/).

Of course a better solution is to upgrade.

Bruce.

> -----Original Message-----
> From: Senn, Bruce
> Sent: Monday, April 08, 2002 10:57 AM
> To: tru64-unix-managers_at_ornl.gov
> Subject: Daylight Savings Time and cron
>
>
> This weekend we had a problem with cron not running a script
> scheduled after the change to DST. Here is the entry in crontab.
>
> 5 5 * * 0,2-5 ( csh /usr/local/bin/nsr_prep >> /tmp/bkup.log 2>&1 )
>
> On Sunday at 8:00 AM the last access time for the script was
> 04-05-02. At one point I thought that this was the first
> item after the jump from 2:00 AM to 3:00 AM, but that is not
> the case. There are four items, which find and remove files,
> scheduled between 4:00 AM and 5:00 AM. These entries are:
>
> 15 4 * * * find /var/preserve ! -mount -mtime +7 -type f
> -exec rm -f {} \;
> 20 4 * * * find /tmp ! -mount -type f -atime +2 -exec rm -f {} \;
> 30 4 * * * find /var/tmp ! -mount -type f -atime +7 -exec rm -f {} \;
> 40 4 * * * find /var/adm/syslog.dated -depth -type d -ctime
> +5 -exec rm -rf {} \;
>
> Unfortunately, I did not check on Sunday whether or not these
> commands were executed.
>
> A script scheduled for 7:00 AM was submitted. The cron entry is:
>
> 0 7 * * 0 ( csh /usr/local/bin/nsr_fini >> /tmp/bkup.log 2>&1 )
>
> Any insight would be appreciated.
>
> TIA.
>
> Bruce.
> ----------------------------------------------------------------------
> Bruce J. Senn Phone: (518) 388-6664
> Senior System Manager FAX: (518) 388-6458
> Union College E-mail: sennb_at_union.edu
> Schenectady, NY 12308 WWW: http://www1.union.edu/~sennb
> ----------------------------------------------------------------------
>
Received on Mon Apr 08 2002 - 15:38:43 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT