Re: crontab help

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

 



On Sat, 2004-08-28 at 23:25, François Patte wrote:
> Selon Steve Foutty <steve@xxxxxxxxxx>:
> 
> > I'm new to Fedora and would like a little help with crontab. I have a fresh
> > install and have just configured mrtg for monitoring a few devices. I tried
> > to follow the documentation for crontab but can't seem to get it right.
> >
> > How do I put mrtg into crontab so that it runs every 5 minutes..
> >
> > Thanks,
> >    Steve
> >
> 
> crontab -e
> 
> then put these lines (the text editor is vi):
> 
> SHELL=/bin/sh
> 
> 5 * * * * /path/to/mrtg
> 

Steve, the above example will run once per hour at 5 minutes after.  

To run it every 5 minutes use
*/5 * * * * /path/to/mrtg

> man 5 crontab gives many details on the syntaxe and some examples.
> 
> --
> François Patte
> 
> Ecole française d'Extrême-Orient - Pune - Inde
> Université René Descartes - Paris 5
> UFR de mathématiques et informatique
> http://www.math-info.univ-paris5.fr/~patte
> 



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

  Powered by Linux