Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 13:48:54 +0000 (GMT)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Robin Huiser <listmail@node10c55.a2000.nl>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cron keeps bugging me...
Message-ID:  <Pine.BSF.4.05.9909171337520.6392-100000@fw.wintelcom.net>
In-Reply-To: <199909171952.VAA43872@node10c55.a2000.nl>

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



On Fri, 17 Sep 1999, Robin Huiser wrote:

> Hi!
> 
> For some reason cron keeps complaining about:
> 
> Message 2/1442 Cron Daemon                       Sep 17, 1999 09:40:36 pm +0200
> 
> Return-Path: <root>
> Date: Fri, 17 Sep 1999 21:40:36 +0200 (CEST)
> To: root
> Subject: Cron <root@node10c55> 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
> 
> Cron keeps root flooding with e-mail.
> What mistake did I make when editing crontab (as root I entered: crontab -e).
> 
> This is the output of crontab -l (for user root):
> 
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.oejOt28320 installed on Mon Sep 13 11:53:08 1999)
> # (Cron version -- $Id: crontab.c,v 1.11 1997/09/15 06:39:15 charnier Exp $)
> # /etc/crontab - root's crontab for FreeBSD
> #
> # $Id: crontab,v 1.18 1998/03/30 09:17:25 ache 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    newsyslog
> #
> # do daily/weekly/monthly maintenance
> 0       2       *       *       *       root    periodic daily 2>&1 | sendmail r
> oot
> 30      3       *       *       6       root    periodic weekly 2>&1 | sendmail 
> root
> 30      5       1       *       *       root    periodic monthly 2>&1 | sendmail
>  root

I don't know what editor you are using but it's wrapping long lines.

You'll have to fix this line so that 'root' is appended to line before it.

You'll also want to learn about a less brain damaged editor, pick up
a book on 'vi' or 'emacs'.

If you are using 'pico' to edit system config files, at least use
'pico -w' until you learn a better editor.

-Alfred Perlstein - [bright@rush.net|alfred@freebsd.org]
Wintelcom systems administrator and programmer
   - http://www.wintelcom.net/ [bright@wintelcom.net]

> #
> # time zone change adjustment for wall cmos clock,
> # does nothing, if you have UTC cmos clock.
> # See adjkerntz(8) for details.
> 1,31    0-5     *       *       *       root    adjkerntz -a
> 
> PLEASE HELP!!!
> 
> Greets -- Robin Huiser
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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