Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 1996 15:07:32 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Guy Helmer <ghelmer@alpha.dsu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Message to Root Every 5 Minutes
Message-ID:  <Pine.BSF.3.91.960626150317.593A-100000@andrsn.stanford.edu>
In-Reply-To: <Pine.OSF.3.94.960626155210.25242A-100000@alpha.dsu.edu>

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


> 
> /etc/crontab is not meant to be installed via crontab(1) - it is special
> in two ways: it is automatically read by cron and it has a different
> format than individual user crontab files.  If you have used crontab(1) to
> install /etc/crontab as root's crontab, you will get the message you
> mentioned above each time cron tries to run one of the commands because
> /etc/crontab is not in the same format as an individual user's crontab
> (see the man page for crontab(5) for details of the format on an
> individual user's crontab).

Well, there's only one crontab binary.  And /etc/crontab is in a format
identical to my old /etc/crontab in 2.0.5 (this is 2.1-STABLE) except
for $id in a comment line.
 
> 
> So, if you make a change to /etc/crontab, *don't* use crontab(1) to put
> /etc/crontab into /var/cron/tabs.  If you have done this, you can use
> "crontab -u root -r" to remove the installed copy (/var/cron/tabs/root) of
> /etc/crontab.

I'm desperate enough to try anything right now.  Thanks.

Annelise


> 
> It's confusing behavior...
> 
> Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu
> 
> 



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