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

Re: cron every 5 minutes



> Isn't the syntax to have cron run every five and not send email to anyone
> 
> MAILTO=""
> 5 * * * * <run program>
> 
> 
> Lance
> 



The above line would run the program once in an hour, 5 minutes after 
the excat hour. To have it run every 5 minutes you can use

    */5 * * * * <run program>

As for not sending mail to anyone I am not sure. An alternative might 
be:

    */5 * * * * <run program> > /dev/null 2 > /dev/null


> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
When responding, please quote my entire message.

    Shaul Karl <shaulka@bezeqint.net>




Reply to: