Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
crontab entry
Name: horst Date: June 22, 2003 at 11:58:54 Pacific OS: unix dect V4 CPU/Ram: -/1Gb
Comment:
Hello, could enybody help me with defining in the crontab an intervall of 5 days, where the parms are like |min|hour|day|month|jear|day of the week| . I checked the enry in my crontab -e for a certain time, works, but how to define each fifth day? thanks in advance
Name: Don Arnett Date: June 22, 2003 at 15:29:21 Pacific
Reply:
In Linux (at Mandrake Linux) you can specify */5 which would be every (minute,hour,day,etc) that is divisible by 5.
So:
* * */5 * * would be every day divisible by 5 although that's not quite every fifth day due to the fact that months don't end of even divisible by 5 boundaries.
If this option isn't available or isn't "close enough", you may need to run a program/script every day and have the program/script decide if it's been five days since the last time.
0
Response Number 2
Name: ArnoldF Date: June 23, 2003 at 08:14:57 Pacific
Reply:
if u require intervals, at(), will do it - requires a little more work than crontab
Summary: By default, crontab mails any output from crontab entries. Is there any way to redirect the output to std output. Like, for example, if I want to show the time on the screen every minute. * * * * * ...
Summary: In your crontab entry, just after script type the following: > /dev/null 2>&1 Just a note: by doing the above you are not capturing the log. instead of sending to the /dev/null you can redirect to my...