[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: "Scott Webb" <webbcite@xxxxxxxxxxx>
- Date: Thu Apr 12 02:28:49 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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.
I don't think I can restore /var/spool/cron/root as it looks the same as the
modified version. Here is my crontab -u root -l:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly
04,34 * * * * root run-parts /etc/cron.half-hourly
01 * * * * root run-parts /etc/cron.hourly
05 0,6,12,18 * * * root run-parts /etc/cron.quarter-daily
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
# Monitor services to make sure everything is still okay.
0,15,30,45 * * * * root /usr/local/sbin/swatch >>/var/cobalt/adm.log 2>&1
# ftpbackup program sending backups to another.host.com
10 23 * * 3 /bin/tar cfp - /home | gzip | /usr/local/bin/ftpbackup -h
111.111.111.111 -u username-p password dir incoming -b
bkp-home-weekly.tar.gz
10 1 * * 4 /bin/tar cfp - /etc | gzip | /usr/local/bin/ftpbackup -h
111.111.111.111 7 -u username -p password dir incoming -b
bkp-etc-weekly.tar.gz
10 2 * * 4 /bin/tar cfp - /var | gzip | /usr/local/bin/ftpbackup -h
111.111.111.111 7 -u username -p password dir incoming -b
bkp-var-weekly.tar.gz
10 3 * * 4 /bin/tar cfp - /usr/admserv | gzip /usr/local/bin/ftpbackup -h
111.111.111.111 -u username-p password dir incoming -b
bkp-usradmserv-weekly.tar.gz
10 4 * * 4 /bin/tar cfp - /usr/local | gzip | /usr/local/bin/ftpbackup -h
111.111.111.111 -u username -p password dir incoming -b
bkp-usrlocal-weekly.tar.gz
I use pico to edit the following file, which I load by >doing:
crontab -u root ~root/cron.master.
I don't have a /root/cron.master file. I do have a /etc/crontab.master and
/etc/crontab.pkgsave. I also made a copy of /etc/crontab prior to making
any changes.
The weird thing is that I edited /etc/crontab directly using vi and and
changed it back to "original". But now it does not match the above. When I
did edit the crontab file "correctly" using crontab -e I didn't specify a -u
username. Could that be part of the problem?
Funny thing is that the cron jobs seem to be working correctly. I am
getting my logcheck emails and the backups actually worked. The only
problem (I think) is that I am getting an error email everytime it tries to
run the crontab file for the different "run-parts". That ends up being a
TON of emails.
Any Ideas on how I can correct my mistakes?
Thanks!
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com