Skip to content

Instantly share code, notes, and snippets.

@farrellit
Created December 21, 2016 17:00
Show Gist options
  • Save farrellit/82de3584b959a47abbf32d5f4114c438 to your computer and use it in GitHub Desktop.
Save farrellit/82de3584b959a47abbf32d5f4114c438 to your computer and use it in GitHub Desktop.
olddate=''
cmd='make r53'
while true; do newdate=`stat -f %m rotate-by-r53.py `; [[ "$olddate" == "$newdate" ]] || { olddate="$newdate"; $cmd; }; sleep 0.25; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment