Date: Mon, 17 Sep 2001 01:49:32 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Tim Allshorn <ta_iy@hotmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Cron pickle Message-ID: <20010917014932.V43502@strontium.shef.vinosystems.com> In-Reply-To: <F243F4r4rPKlNonsYKU00010632@hotmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Tim Allshorn wrote:
> I know the cron command has to be something like : 59 23 ? ? * , with
> maybe some condition on the end.
I think you could use something like
59 23 28-31 * * [ `date -v+1M +%d` -eq 1 ] && /path/to/your/program
i.e., check that in one minute's time the day of the month is 1, if so,
run the program.
--
Ben Smithurst / ben@FreeBSD.org FreeBSD: The Power To Serve
http://www.FreeBSD.org/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE7pUicbPzJ+yzvRCwRAiL+AKC8EdzNAbS+PRSwxLsDrT7tyrQylgCdFpUb
wVswnd2SkB2cB2Blyg+98vE=
=62V8
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010917014932.V43502>
