complex crontab query
Matthew Seaman
matthew at cryptosphere.com
Tue Oct 7 08:39:55 PDT 2003
On Tue, Oct 07, 2003 at 05:53:47PM +0300, Odhiambo Washington wrote:
> * Matthew Seaman <m.seaman at infracaninophile.co.uk> [20030930 21:08]: wrote:
> > 23 11 * * Thu [ $(date +%d) -lt 8 ] && your_script
> How does that differ with the following?
>
> 23 11 * * 4 if [ `date +\%d` -le 7 ]; then /path/to/my/command; fi
TIMTOWTDI.
Both lines should have the same effect overall, although I neglected
to escape the % sign in what I wrote, which is not a good move in a
crontab file.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031007/f1273224/attachment.bin
More information about the freebsd-questions
mailing list