Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 1996 11:49:47 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        "Jonathan M. Bresler" <jmb@freefall.freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Message to Root Every 5 Minutes
Message-ID:  <Pine.BSF.3.91.960626114647.1063A@andrsn.stanford.edu>
In-Reply-To: <199606261828.LAA25994@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


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@andrsn> root	/usr/libexec/atrun
> > X-Cron-Env: <SHELL=/bin/sh>
> > X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
> > X-Cron-Env: <HOME=/root>
> > X-Cron-Env: <LOGNAME=root>
> > X-Cron-Env: <USER=root>
> > 
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960626114647.1063A>