I'm sorry I can't fully focus my question.
I'm trying to use flock to avoid from running the script concurrently, like described here in the accepted answer: How to prevent a script from running simultaneously?
I remember someone saying that in this way there might be problems like not being able to run the script at all.
Does someone know about such a possibility?
I tried the following scenarios:
- Run the script right after it was run - it ran the second time perfectly
- Interrupt the script with CTRL+C and then run it again - no problem with the second run
- Shut down the machine abruptly while the script is running, power on the machine and rerun the script - the same result: no problem
I couldn’t think about more complex possibilities.