Skip to content

Instantly share code, notes, and snippets.

@codcodog
Created May 19, 2021 01:58
Show Gist options
  • 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