alarm sound when something is put in a file
Posted on 2002-05-08
Let us say I have a process that is running and appending some text at the end of a file so using the following command
tail -f myFile | grep alarmText ----(1)
I will get a line of output whenever the alaramText is put on the file.
What I want is some kind of alarming sound (such as the one you get when someone initiates a "talk command" with your name), so that I will be able to know when that thing happend instead of shifting my attention and going at the xterm I am running (1).