tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ need help with optimizing script

line-up a string with bash ▻

Crontab

>>> daily, because of disk space,  I want to run a script that at 24h00 it will

There is no 24:00 in the 24 hour clock.  The minutes of the day run from
00:00 to 23:59.

>>00 24 * * *  /usr/bin/rm /<path to directory where log files are>/*

>05 24 * * * /<yourscriptdirectory>/<yourscriptfilename>

Not surprisingly, then, these will never run anything.  With luck, they
will be rejected by crontab(1).

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: Crontab
Date: 24 Feb 2000 14:20:02 -0000
Message-ID: <893en8$165$1@ltpcg.star.le.ac.uk>
References: <890pbu$llg$1@aken.eed.ericsson.se>
  <38B3EE7A.294000D9@hades.daewoo.com.pl>
  <0E16861EE7BCD111BE9400805FE6841F0E87A0CA@c1s5x001.cor.srvfarm.origin-it.com>

△ comp.unix.shell △

◅ need help with optimizing script

line-up a string with bash ▻