shell - Linux text match beep -
i want have utility check console output, , in case of text match "error" make beep or other type of event. can me find some?
here's do:
- redirect output file.
- run diff on file versus "truth data". see here on how use diff in if statement: bash: using result of diff in if statement
- if diff returns nothing, play sound. details sound playing can found here: https://unix.stackexchange.com/questions/8607/how-can-i-play-a-sound-when-script-execution-is-ready
good luck!
Comments
Post a Comment