[wellylug] Crontab entry - SOLVED
Jamie Dobbs
jamie.dobbs at orcon.net.nz
Sun Jan 25 20:48:51 NZDT 2004
it looks like cron does not allow time periods which extended over
midnight, so some of my entries wouldn't have worked. The corrected
crontab file is listed below:
# Mon - Fri (3am-5:45pm) and Sat - Sun (3am-11:45am) get all email in
# 'non-peak' hours
*/10 3-17 * * 1-5 /home/drgnfire/bin/getmyemailnow
*/10 3-12 * * 6-7 /home/drgnfire/bin/getmyemailnow
# only get small emails during 'peak' hours (Mon-Fri 6pm-2:45am, Sat/Sun
# 12pm-2:45am)
*/10 0-2,18-23 * * 1-5 /home/drgnfire/bin/getsmallmailnow
*/10 0-2,12-23 * * 6-7 /home/drgnfire/bin/getsmallmailnow
(not 100% sure it all works yet as all time periods haven't passed, but
it certainly works at this time so hopefully will with the other
entries.
On Mon, 2004-01-26 at 05:07, Jamie Dobbs wrote:
> I've changed my crontab to the following:
>
> # Mon - Fri (3am-5:45pm) and Sat - Sun (3am-11:45am) get all email in
> # 'non-peak' hours
> */15 3-17 * * 1-5 ~/bin/getmyemailnow
> */15 3-11 * * 6,7 ~/bin/getmyemailnow
>
> # only get small emails during 'peak' hours (Mon-Fri 6pm-2:45am, Sat/Sun
> # 12pm-2:45am)
> */15 18-2 * * 1-5 ~/bin/getsmallmailnow
> */15 12-2 * * 6,7 ~/bin/getsmallmailnow
>
> but for some reason it doesn't appear to be ever running, obviously I've
> made an error somewhere and wonder if someone could be so kind as to
> tell me what's wrong.
>
> TIA
>
> Jamie
>
More information about the wellylug
mailing list