RH8 Question

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Sun Aug 29 00:08:07 UTC 2004


Am So, den 29.08.2004 schrieb Steve Foutty um 1:28:

> Alexander,
> 
>    I just upgraded to fc2, so far I like it. I am having problems with a
> cron job. Can you help me get mrtg to run as a cron every 5 minutes?
> 
>    Thanks,
>      Steve

Steve,

"man 5 crontab" holds the information you need to properly format
crontab entries.

If you run mrtg from the /etc/crontab it would look like

*/5 * * * * root /path/to/thing_to_execute

Maybe followed by "> /dev/null 2>&1" to redirect the output it produces
to electronic nirvana.

If you create a crontab by using "crontab -u USER -e", then the user as
which the cronjob shall run is not part of the instructions line. And
keep in mind that by default cron has not a full path environment set.
So better use absolute paths.

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 02:00:22 up 8 days, 21:42, load average: 0.39, 0.38, 0.22 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040829/3922cd9a/attachment-0001.sig>


More information about the fedora-list mailing list