Skip to content

Instantly share code, notes, and snippets.

@ivanhoe011
Created December 18, 2022 11:51
Show Gist options
  • Save ivanhoe011/66a36d8af63dee21b9ffd21e49ee2b28 to your computer and use it in GitHub Desktop.
Save ivanhoe011/66a36d8af63dee21b9ffd21e49ee2b28 to your computer and use it in GitHub Desktop.
Monitor bg running script for errors and sound an alarm (on Mac)
tail -f nohup.out | grep -i error | while read line; do say 'Error!'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment