Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

cron job – 2 different jobs scheduling

*/5 * * * * /dev/file1/test/test1/fls/mdm/test1.sh
*/7 * * * * /dev/file1/test/test1/fls/mdm/test2.sh

I have 2 cron jobs – job1 and job2. I need to schedule the second job to run few minutes later than ongoing cron job.

Can anyone guide me how to achieve this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

00 05 * * * * /dev/file1/test/test1/fls/mdm/test1.sh

02 05 * * * * /dev/file1/test/test1/fls/mdm/test2.sh

I guess this should do the job as the first will run at 05 00 am and the second will run at 05 02 am.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading