On Sun, 11 Mar 2012 01:42:25 -0600, Christofer C. Bell wrote: > On Fri, Mar 9, 2012 at 12:35 PM, Camaleón <noela...@gmail.com> wrote: >> On Fri, 09 Mar 2012 05:09:23 +0000, T o n g wrote: >> >>> Is there any easy way to schedule a job for a duration that is greater >>> than one month but shorter than 2 months? Any duration will do, as >>> long as it is easy to schedule. >> >> Mmm... I wonder if using steps values (*/*) in crontab could be >> possible set a period of 45 days, that is, a task to be run every month >> and every 15 days :-? > > According to this page[1], the following works for that: > > * * */45 * * your_scheduled_task > > I've not tried it myself. > > [1] > http://stackoverflow.com/questions/8769689/set-cron-job-for-every-45-day-to-execute-my-php-script-using-cron
Mmm, interesting! I was thinking in using a combination of days and months (this is completely untested just an idea): * * */15 */1 * #task to run Mainly because "man 5 crontab" says you can only use a range between 1-31 for days and 1-12 for months but if that works it would be great :-) Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jji7gc$jrs$3...@dough.gmane.org