Stayalive Wrapper
Matthew Rubenstein <[email protected]> Sun, 19 Mar 2006 16:46:22 -0500
| Newsgroups | gmane.comp.audio.mad.user |
|---|---|
| Message-ID | <[email protected]> |
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