Skip to content

Instantly share code, notes, and snippets.

@codcodog
Created May 19, 2021 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codcodog/074ce7e228d63060f6d20b7ad71d0512 to your computer and use it in GitHub Desktop.
Save codcodog/074ce7e228d63060f6d20b7ad71d0512 to your computer and use it in GitHub Desktop.
crontab 防止重复执行
0 23 * * * (flock -xn ./test.lock -c "sh /root/test.sh")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment