What system are you using, you was very unclear?
He basically just told you how to do it in linux with pipes....
A simple bash script wouldnt be hard.
For Windows it would require the output to a log, and a seperate worker checking the log every x seconds, at least until a sound is introduced in the client.