View Full Version : Re: Developers Digest, Vol 1, Issue 10

Rob Funk
2003-11-10, 15:42
Jake Hawkes wrote:
> while 1
> do
> mpg123 http://localhost:9000/stream.mp3
> echo "Restarting mpg123" >> runmpg123.log
> done

Probably best to insert a "sleep 1" before the echo line. If the mpg123
command fails immediately, you don't want the system to keep spinning at
high speed trying to restart it.

This is when you learn about the init daemon and how to make it safely keep
things running with "respawn".....
==============================| "A slice of life isn't the whole cake
Rob Funk <rfunk (AT) funknet (DOT) net> | One tooth will never make a full grin"
http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"