Computing.Net > Forums > Unix > crontab entry

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: crontab entry

crontab jobs www.computing.net/answers/unix/crontab-jobs/1982.html

crontab and stdout www.computing.net/answers/unix/crontab-and-stdout/4062.html

crontabs www.computing.net/answers/unix/crontabs/2163.html