Date: Sat, 13 Jan 2001 12:20:08 -0800 (PST) From: Gerhard Sittig <Gerhard.Sittig@gmx.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/21660: crontab mishandles day range Message-ID: <200101132020.f0DKK8159976@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/21660; it has been noted by GNATS. From: Gerhard Sittig <Gerhard.Sittig@gmx.net> To: wayne@barnes1.wustl.edu Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/21660: crontab mishandles day range Date: Sat, 13 Jan 2001 20:31:18 +0100 On Sat, Sep 30, 2000 at 10:55 -0500, wayne@barnes1.wustl.edu wrote: > > >Synopsis: crontab mishandles day range > >Release: FreeBSD 3.5-STABLE i386 > >Description: > The following crontab line is intended to execute only on the > 2d Friday of every month, but it executes every Friday morning. > 8 8 8-14 * 5 mail -s "Pickup request" eoates < /home/wayne/mail/biohazard.mai Could you please check your system's crontab(5) manpage? Here it looks like this: ----------------------------------------------------------------- %uname -sr FreeBSD 4.2-STABLE %man 5 crontab [ ... ] Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (ie, aren't *), the command will be run when either field matches the current time. [ ... ] ----------------------------------------------------------------- The part of "either field" is emphasized. If your manpage tells you the same, it seems that you have to find a different method of specifying your intension. The easiest would probably be to wildcard the DOW part and wrap your mail command into a script which quickly checks `date '+%w'` output to be 5. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101132020.f0DKK8159976>