[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] crontab /bin/bash: root: command not found
- Subject: Re: [cobalt-users] crontab /bin/bash: root: command not found
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Wed Apr 11 22:10:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Scott Webb" <webbcite@xxxxxxxxxxx> wrote:
> I edited my crontab file directly. i.e. vi /etc/crontab. I added some
lines
> and saved it. I then figured out that that was not the correct way to do
it
> so I went in and deleted the lines that I added and then did:
>
> crontab -e
>
> and added the appropriate lines. (all of this as su - root). Now it seems
> that I am getting the following email error everytime crontab tries to run
> any of the hourly, half-hourly, quarter-hourly etc:
>
> Date: Wed, 11 Apr 2001 23:18:00 -0700
> From: Cron Daemon <root@xxxxxxxxxxxxx>
> To: root@xxxxxxxxxxxxx
> Subject: Cron <root@ns> root run-parts /etc/cron.quarter-hourly
>
> /bin/bash: root: command not found
Just restore your backup of /var/spool/cron/root. If that's not possible,
post the contents of that file so we can find the error. Here are the first
few lines of one of mine (the rest of the lines follow the same format).
[root@ns mail]# cat /var/spool/cron/root
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (cron.master installed on Tue Apr 10 09:36:33 2001)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
05 02 * * * .
/root/jobs/update.webalizer.cron > /dev/null 2>&1
00 03 * * * .
/root/jobs/backups.daily.cron > /dev/null 2>&1
50 03 * * * .
/root/jobs/backups.mysql.cron > /dev/null 2>&1
22 0,6,12,18 * * * .
/etc/cron.daily/my.webalizer.cron > /dev/null 2>&1
I use pico to edit the following file, which I load by doing:
crontab -u root ~root/cron.master.
[root@ns mail]# cat /root/cron.master
05 02 * * * .
/root/jobs/update.webalizer.cron > /dev/null 2>&1
00 03 * * * .
/root/jobs/backups.daily.cron > /dev/null 2>&1
50 03 * * * .
/root/jobs/backups.mysql.cron > /dev/null 2>&1
15 04 * * 7 .
/root/jobs/backups.weekly.cron > /dev/null 2>&1
22 0,6,12,18 * * * .
/etc/cron.daily/my.webalizer.cron > /dev/null 2>&1
Hopefully this is enough to get you on track.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/