[mad-user] Stayalive Wrapper

Matthew Rubenstein email at mattruby.com
Sun Mar 19 13:46:22 PST 2006


	I listen to a stream that plays data retrieved by curl piped to
madplay, on my Inspiron8000's Ubuntu GNOME desktop:

#!/bin/sh
# Clean out old sessions.
killall curl madplay
sleep 2
# WWOZ.org stream
curl http://wwoz-sc.streamguys.com:80 | madplay -Q -


Every once in a while the curl process is interrupted by a network
timeout. I want to put the script into a loop that tests the playback
status, and restarts the pipeline if it's not playing. Any ideas?
-- 

(C) Matthew Rubenstein



More information about the mad-user mailing list