FC" Cron Error - Newbe Question

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Sun Sep 26 19:31:06 UTC 2004


Am So, den 26.09.2004 schrieb Robert Slade um 21:15:

> > Which crontab is this really? _Your_ crontab (the one created by running
> > "crontab -e") or the file /etc/crontab? The syntax for these files is different.
> 
> It is the root crontab, all I have done is edited it with crontab -e (as
> root) to add the run-tasks.

If you run "crontab -e" as root the crontab settings go to
/var/spool/cron/root, not to /etc/crontab.

>  
> > > SHELL=/bin/bash
> > > PATH=/sbin:/bin:/usr/sbin:/usr/bin
> > > MAILTO=root
> > > HOME=/
> > >
> > > # run-parts
> > > 01 * * * * root run-parts /etc/cron.hourly
> > > 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
> > 
> > These lines are in /etc/crontab format, and are the cause of the error.

This this previous comment. Those lines have not to be in any
/var/spool/cron/$USER crontab.

> > > # run-tasks
> > > 0 2 * * * /usr/bin/freshclam --quiet -l /var/log/clam-update.log
> > > 0 3 * * * /var/qmail/bin/qmailstats  1>/dev/null 2>/dev/null
> > 
> > These are in the correct format for user crontab files
> > Why are you including /etc/crontab lines in your personal crontab?
> 
> Please see above. They are required for my mail server which I am trying
> to setup.

Either edit /etc/crontab _or_ use the custom crontab lines when running
"crontab -e".

> Rob

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp 
Serendipity 21:28:12 up 5 days, 23:32, load average: 1.27, 1.25, 1.20 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040926/be5414eb/attachment-0002.bin 


More information about the users mailing list