Date: Sun, 16 Sep 2001 22:17:29 -0500 From: Steve Ames <steve@virtual-voodoo.com> To: Greg Black <gjb@gbch.net> Cc: Eugene Grosbein <eugen@www.svzserv.kemerovo.su>, Tim Allshorn <ta_iy@hotmail.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: Cron pickle Message-ID: <20010916221729.A25329@virtual-voodoo.com> In-Reply-To: <nospam-1000696079.92927@mx1.gbch.net>; from gjb@gbch.net on Mon, Sep 17, 2001 at 01:07:59PM %2B1000 References: <F243F4r4rPKlNonsYKU00010632@hotmail.com> <nospam-1000693050.89979@mx1.gbch.net> <20010917105932.A5338@svzserv.kemerovo.su> <nospam-1000696079.92927@mx1.gbch.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 17, 2001 at 01:07:59PM +1000, Greg Black wrote: > Eugene Grosbein wrote: > | This can be done with cron with single entry and small overhead. > | Run whis script at last minute of every day (or every 28-31): > | > | #!/bin/sh > | > | tomorrow=`date -v+1d %d` > | if [ $tomorroq -ne "01" ]; then > | exit # if tomorrow is not begin of month, do nothing > | fi > | > | # do work now > > Sure: > > $ date -v+1d %d date -v+1d +%d -Steve 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?20010916221729.A25329>