Cron Job to Run every 2 minutes

Hello Gurus,

I want to schedule a cron job which will run every 2 minutes starts at 11:25 AM and 3:25 AM daily.

Can you please suggest as how to schedule the job.

Thanks-
Pokhraj Das

Something like this (in Linux)

0/2 11-23 * * *  /path/to/your/script
0/2  0-4  * * *  /path/to/your/script

Your script then needs to contain logic to check the current time and not run to completion if the current time is before 11.25 or after 03.25.

I don't understand the problem. If a job is supposed to start every two minutes what difference does it make when the first one starts? And, why do you need two jobs that run every two minutes? Why not just run one script every two minutes that fires up the two script you want to run?

On systems where cron/crontab allows repetitions using / , it would seem that the following crontab entries should work:

1/2 * * * * /path/to/your/0325script
1/2 * * * * /path/to/your/1125script

and on other systems, the longer (standard) specification requesting the same behavior would be:

1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59 * * * * /path/to/your/0325script
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59 * * * * /path/to/your/1125script