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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -