> strace gmfsk <your-args> | grep -A 10 -B 10 "/dev/dsp" Correction : Just discovered strace sends its output to stderr, so the above won't work (the pipe command only takes stdout). One way around this is to redirect stderr to stdout strace gmfsk <your-args> 2>&1 | grep -A 10 -B 10 "/dev/dsp" cheers Chris p.s. if you don't have strace, just run 'yum install strace'