Last active
September 27, 2017 01:20
-
-
Save duderamos/52244763dc4788128ccc1d4af5f719e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If a second instance of this script starts, it won't run the command and exit with 1. | |
flock -n /tmp/.process-name.lock <long command with args here> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment