RE: RH8 Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux