From owner-freebsd-bugs Sat Jan 13 12:20:25 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 853F437B6A3 for ; Sat, 13 Jan 2001 12:20:08 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0DKK8159976; Sat, 13 Jan 2001 12:20:08 -0800 (PST) (envelope-from gnats) Date: Sat, 13 Jan 2001 12:20:08 -0800 (PST) Message-Id: <200101132020.f0DKK8159976@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Gerhard Sittig Subject: Re: bin/21660: crontab mishandles day range Reply-To: Gerhard Sittig Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/21660; it has been noted by GNATS. From: Gerhard Sittig 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