Closed ghost closed 8 years ago
I guess I can use http://linux.die.net/man/1/flock ... seems to be a better approach than implementing something in each individual program
https://ma.ttias.be/prevent-cronjobs-from-overlapping-in-linux/
@meffect It's not safe to run multiple copies of unrarall at the same time. Using something like flock
seems like a good idea as I don't want to add additional code to unrarall to detect for this.
Sounds good. Good to know it's not built in, so I can account for it
If I run this command twice
Will the second run of the script not overlap the first command?
I'm thinking in the situation, where I want a cron job to run the command every 1 minute. The first run may still be processing when the second cron kicks off