I am using mplayer. I want to send everything to a log file (/tmp/server.log), but I want the Volume output to be written to the terminal. I have seen that there is a way to split the output with tee, but I can't seem to get it to work. This is what I have so far:
$mplayer /path/to/song.wav 1>tee /tmp/server.log | grep Volume 2> /tmp/server.log
I want ALL of the stdout and stderr to go to the log file, but only the lines with Volume from stdout to be written to the terminal. Or is there a better way of doing this?