[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cron, > 1 month but < 2 months



On Fri, Mar 9, 2012 at 12:35 PM, Camaleón <noelamac@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

-- 
Chris


Reply to: