Monday, January 14, 2019

What does "every two minutes" mean in cron?

I've got two scripts in cron set to run every two minutes: */2 -- the thing is, they're out of step. One runs at 1,3,5,7,9 minutes, etc. and the other at 0,2,4,6,8. This is not a mission-critical problem, but means I've got two status reports, one a bit stale compared to the other.



What does cron do exactly? Run the first one in crontab document order, waiting till it's finished to run the second one?



Is there any way I can make the run at the same time, or as close as possible?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...