[mad-user] Stayalive Wrapper
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:
# Clean out old sessions.
killall curl madplay
# 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