/etc/crontab has an extra field? I didn't notice it from what was already
there...
This is my /etc/crontab:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root nice -n 19 run-parts /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly
# Perform a full backup every sunday at 7.30pm
30 7 * * sun /root/full-backup.sh >>/var/log/backups 2>&1
# Perform an incremental backup at 7.30pm every weekday and saturdays.
30 7 * * mon-sat /root/incr-backup.sh >>/var/log/backups 2>&1
I added the backup lines yesterday midday or early afternoon... Yet they
didn't appear to run (backups not performed, log file not written to).
`ps x` tells me that crond is running. Does it need to be restarted when
/etc/crontab is modified? (How often does crond read /etc/crontab?)
Thanks...
Mike
---
Michael S. E. Kraus
Administration
Capital Holdings Group (NSW) Pty Ltd
[EMAIL PROTECTED]
phone (02) 9955 8000 fax (02) 9955 8144
John Clarke <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
20/11/2002 11:11 AM
To: [EMAIL PROTECTED]
cc:
Subject: Re: [SLUG] crontab under Mandrake 8.2
On Wed, Nov 20, 2002 at 11:06:27AM +1000, [EMAIL PROTECTED]
wrote:
> I editted /etc/crontab, and it had no effect - I take it I have to run
> crontab as a certain user to implement the changes.
You should be able to add things to /etc/crontab and have them run. Is
cron running?
Note that the format of /etc/crontab is slightly different to a user's
crontab - there's an extra field which is the username that the command
is run as.
> Which user's crontab is /etc/crontab, or what steps do I need to take to
> implement changes applied to /etc/crontab?
/etc/crontab is the system's crontab, not a particular user's. The
users' crontabs are in /var/spool/cron (but don't edit them directly).
Cheers,
John
--
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug