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:

  1. redirect output file.
  2. run diff on file versus "truth data". see here on how use diff in if statement: bash: using result of diff in if statement
  3. 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

Popular posts from this blog

html - height not adding height to a empty div -

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -