cron abuse

2006-09-03 Thread Don Wilde

I reinstalled my crontab (with crontab -e) after a user edited the
crontab directly and nothing appears to be working now. The mails I
get suggest that it's trying to find 'root' and 'operator' as
programs. Would somebody kindly help me recover from this copilot
error? I can't find anything in crontab(5) or cron(8).

My procedure was to

 invoke crontab -e (getting a blank emacs editor window),
 split the window, opening a copy of the /etc/crontab
 copied the contents into the temporary crontab
 save and exit
 kill -1 1

these are the e-mails I'm getting

Subject: Cron [EMAIL PROTECTED] root /usr/libexec/atrun

root: not found

TIA!

Don Wilde
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cron abuse

2006-09-03 Thread Don Wilde

On 9/3/06, David Wolfskill [EMAIL PROTECTED] wrote:

Formats for /etc/crontab  user-specific crontabs are different; the
former contains a field for the user under whose auspices the command
should be run, while the latter does not (as it's implied by the owner
of the crontab in question).

Peace,
david


Thanks for taking the time to answer, David.

Yes, I see that. I'm reinstalling the old /etc/crontab back into /etc/crontab.

This is what's driving me nuts. Why would it be acting as though it's
a user crontab?

%D
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cron abuse

2006-09-03 Thread Don Wilde

On 9/3/06, David Wolfskill [EMAIL PROTECTED] wrote:

On Sun, Sep 03, 2006 at 11:43:01AM -0500, Don Wilde wrote:
 ...
 Thanks for taking the time to answer, David.

Sure thing.

 Yes, I see that. I'm reinstalling the old /etc/crontab back into
 /etc/crontab.

OK.

 This is what's driving me nuts. Why would it be acting as though it's
 a user crontab?

I doubt that it is -- more likely, a copy of /etc/crontab was installed
as a user crontab -- go check /var/cron/tabs.


Yes, it did exactly that. Will removing the /var/cron/tabs entry make
everything Just Work again?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cron abuse

2006-09-03 Thread Brooks Davis
On Sun, Sep 03, 2006 at 11:57:44AM -0500, Don Wilde wrote:
 On 9/3/06, David Wolfskill [EMAIL PROTECTED] wrote:
 On Sun, Sep 03, 2006 at 11:43:01AM -0500, Don Wilde wrote:
  ...
  Thanks for taking the time to answer, David.
 
 Sure thing.
 
  Yes, I see that. I'm reinstalling the old /etc/crontab back into
  /etc/crontab.
 
 OK.
 
  This is what's driving me nuts. Why would it be acting as though it's
  a user crontab?
 
 I doubt that it is -- more likely, a copy of /etc/crontab was installed
 as a user crontab -- go check /var/cron/tabs.
 
 Yes, it did exactly that. Will removing the /var/cron/tabs entry make
 everything Just Work again?

Yes or run crontab -e and delete everything in the editor window
before saving.

One good thing about your problem is it reminded me I'd forgotten to MFC
the anti foot shooting measure I added a while back which causes crontab
to refuse to load /etc/crontab as a user crontab.  It doesn't try very
hard, but it does prevent the most common error.

-- Brooks


pgpdwkRsQA33T.pgp
Description: PGP signature


Re: cron abuse

2006-09-03 Thread Don Wilde

One good thing about your problem is it reminded me I'd forgotten to MFC
the anti foot shooting measure I added a while back which causes crontab
to refuse to load /etc/crontab as a user crontab.  It doesn't try very
hard, but it does prevent the most common error.

-- Brooks


Which is what happened here. :) It never ceases to amaze me how rich a
world FreeBSD is, and there's always more to learn. Many tanks of beer
to all who added suggestions. The root crontab was indeed saved by my
actions as /var/cron/tabs/root, and it was that which was complaining
vociferously.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]