Skip site navigation (1)Skip section navigation (2)
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>
References:  <F243F4r4rPKlNonsYKU00010632@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--7mIJwGTFTwAlEXlA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Tim Allshorn wrote:

>     I know the cron command has to be something like : 59 23 ? ? * , with=
=20
> 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.

--=20
Ben Smithurst / ben@FreeBSD.org                 FreeBSD: The Power To Serve
                                                    http://www.FreeBSD.org/

--7mIJwGTFTwAlEXlA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----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-----

--7mIJwGTFTwAlEXlA--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010917014932.V43502>