From owner-freebsd-questions Wed Jun 26 11:49:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA26954 for questions-outgoing; Wed, 26 Jun 1996 11:49:53 -0700 (PDT) Received: from mailhub.Stanford.EDU (mailhub.Stanford.EDU [36.21.0.128]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA26948 for ; Wed, 26 Jun 1996 11:49:50 -0700 (PDT) Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [36.33.0.163]) by mailhub.Stanford.EDU (8.7.5/8.7.3) with SMTP id LAA13404; Wed, 26 Jun 1996 11:49:47 -0700 (PDT) Date: Wed, 26 Jun 1996 11:49:47 -0700 (PDT) From: Annelise Anderson To: "Jonathan M. Bresler" cc: freebsd-questions@freebsd.org Subject: Re: Message to Root Every 5 Minutes In-Reply-To: <199606261828.LAA25994@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 26 Jun 1996, Jonathan M. Bresler wrote: > Annelise Anderson wrote: > > > > I'm getting the following message sent every five minutes--it ends > > up in /var/mail/root: > > > > > > >From daemon Wed Jun 26 08:10:01 1996 > > Received: (from root@localhost) by andrsn.stanford.edu (8.7.5/8.6.12) id IAA00596; Wed, 26 Jun 1996 08:10:01 -0700 (PDT) > > Date: Wed, 26 Jun 1996 08:10:01 -0700 (PDT) > > Message-Id: <199606261510.IAA00596@andrsn.stanford.edu> > > From: root (Cron Daemon) > > To: root > > Subject: Cron root /usr/libexec/atrun > > X-Cron-Env: > > X-Cron-Env: > > X-Cron-Env: > > X-Cron-Env: > > X-Cron-Env: > > > > root: not found > > > > I must have something set wrong--any ideas? > > hello annelise, > looks like your /etc/crontab has an error. it should look > like this: > > [snip] > # > #minute hour mday month wday who command > # > */5 * * * * root /usr/libexec/atrun > [snip] > > the HOME enviroment variable is set to "HOME=/root" > should be "HOME=/var/log" > > jmb It is set to /var/log--here it is: # /etc/crontab - root's crontab for FreeBSD # # $Id: crontab,v 1.10 1995/05/27 01:55:21 ache Exp $ # From: Id: crontab,v 1.6 1993/05/31 02:03:57 cgd Exp # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun # # rotate log files every hour, if necessary #0 * * * * root /usr/bin/newsyslog # # do daily/weekly/monthly maintenance 0 2 * * * root /etc/daily 2>&1 | sendmail root 30 3 * * 6 root /etc/weekly 2>&1 | sendmail root 30 5 1 * * root /etc/monthly 2>&1 | sendmail root # # time zone change adjustment for wall cmos clock, # does nothing, if you have UTC cmos clock. # See adjkerntz(8) for details. 1,31 0-4 * * * root /sbin/adjkerntz -a Not exactly a custom crontab, is it? Annelise