From owner-freebsd-questions Thu May 4 18:15:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (fw2.wilsonandhorton.co.nz [203.99.66.4]) by hub.freebsd.org (Postfix) with ESMTP id 2C26A37B60A for ; Thu, 4 May 2000 18:15:20 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.9.3/8.9.3) id NAA00987; Fri, 5 May 2000 13:14:20 +1200 (NZST) (envelope-from jonc) Date: Fri, 5 May 2000 13:14:20 +1200 From: Jonathan Chen To: Doug Young Cc: freebsd-questions@FreeBSD.ORG Subject: Re: "bad day_of_the_month" (yes really !!!) cron questions Message-ID: <20000505131420.A798@jonc.itouch.co.nz> References: <018e01bfb62c$58481b00$847e03cb@ROADRUNNER> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <018e01bfb62c$58481b00$847e03cb@ROADRUNNER>; from dougy@gargoyle.apana.org.au on Fri, May 05, 2000 at 10:51:23AM +1000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, May 05, 2000 at 10:51:23AM +1000, Doug Young wrote: > I'd like to have remote systems email a copy of various logs at to me at > sheduled times, & I understand that "cron" is supposed to be capable of > doing this. What I don't understand is exactly how to go about it. > > I followed the instructions in Complete FreeBSD, and even though there's a > file "/usr/bin/crontab", when I run "crontab -l" I get a message "no crontab > for root" > Now this sounds weird, because I understood from "man cron" & "man crontab" > that a bunch of processes are controlled from the root cron, so what gives > here ?? There's root's crontab, and then there's the system's crontab. On a fresh install, there are no crontabs for root; but there is a system crontab in /etc/crontab. The format for the personal crontab vs the system crontab differs. The system has an extra run-as-user field. > I then tried running "crontab crontab", but that just told me > "crontab":0: bad day_of_month > crontab: errors in crontab file, can't install This tends to indicate an error in your crontab file format. If you send it to the list, betcha we can find out what it is. Cheers. -- Jonathan Chen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message