Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Robert Heaton on April 29, 2002, 02:58:12 PM
-
HI,
Can someone tell me how to create a CRON job, that will run every 15 minutes.
Thanks in advance,
Rob.
-
Log into the server as root. Type in:
crontab -e
i
*/4 * * * * /full/path/to/your/job
:wq
-
> */4 * * * * /full/path/to/your/job
*/4 means every four minutes.
*/15 is every 15.
-
Oops, sorry. I assumed it meant "divide every hour by four" but as I never actually used this particular type of timing on my cron jobs I never found out it's wrong. Thanks for correcting.
-
Thanks guys, that works perfectly!
Kind regards,
Rob.
-
How do you stop the email message sent to admin each time this job runs?
I tried doing this in the past but realised after a few months that I had litterally THOUSANDS of messages in my admin mailbox.
Yes, you guessed it, I don't check the admin mailbox often!
Thanks for any help.
Serge
-
Which cron job is sending the mails?
-
Add "&>/dev/nll" after the command. Not a good idea.
Better to have the jobs modified to output something only in case of error.