Matthew Rubenstein
2006-03-19 21:46:22 UTC
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?
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
(C) Matthew Rubenstein