Answer the question
In order to leave comments, you need to log in
How to work with the flock utility?
I'm trying to figure out the flock utility in order to implement the launch of the script by cron once every few seconds,
as I understand it, when you start the command through flock, restarting should be impossible while the created loc file exists. However, my team
flock -w 10 /tmp/lock.lock ./dev.sh
Answer the question
In order to leave comments, you need to log in
I'm trying to figure out the flock utility in order to implement the launch of the script by cron once every few secondsAnd what does this utility have to do with cron launch?
Or did I misunderstand what the utility does?Well, it's hard to misunderstand. All functionality of the utility is described in its name.
flock -w 10 /tmp/lock.lock ./dev.sh Works wonderfully
as many times in a row as I give this command in the console. What am I doing wrong? Or did I misunderstand what the utility does?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question