Created
December 18, 2022 11:51
-
-
Save ivanhoe011/66a36d8af63dee21b9ffd21e49ee2b28 to your computer and use it in GitHub Desktop.
Monitor bg running script for errors and sound an alarm (on Mac)
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
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