From owner-freebsd-questions Wed Apr 21 12:21:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 08A07158E4 for ; Wed, 21 Apr 1999 12:20:45 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id MAA20465; Wed, 21 Apr 1999 12:17:52 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Wed, 21 Apr 1999 12:17:51 -0700 (PDT) From: Doug White To: Rudi Opperman Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: help with cron and crontab mail messages In-Reply-To: <371DB989.99A129BE@askas.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 21 Apr 1999, Rudi Opperman wrote: > hi > > I am trying to limit the messages that crontab sends to a user about > jobs run under cron. The situation is : > I am trying to customise cron to run some afterhours tasks. It seems > that you just add the tasks in the specified users crontab file and load > it. This is quite simple and works well. However these jobs need to > run as root. I checked root's loaded crontab and it was empty - so i > added to jobs to /etc/crontab and loaded it. I then recieved mail every > five minutes from > > */5 * * * * root /usr/libexec/atrun Did you read the messages? I bet you're getting messages like: root: not found If you installed this as root's user crontab using 'crontab -u root file', then you wiffed the syntax. Take the user argument out; of COURSE you want to run them as root! /etc/crontab and the root user's crontab are different! Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message