PDA

View Full Version : Re: Daemonized MP3 player (linux)



Jake Hawkes
2003-11-10, 13:58
--- Michael Herger <mherger (AT) jo-sac (DOT) ch> wrote:
> > I think it would be as simple as this:
> > mpg123 http://localhost:9000/stream.mp3 &
>
> This would be to simple to be true :-). After leaving the shell (closing
> my ssh connection) will it stay alive?

it should, you could make sure of that by nohuping it:

$> nohup mpg123 http://localhost:9000/stream.mp3 &

but someone has mentioned that mpg123 fails now and then, so I think you should use the script
with the loop. if you do that, make sure you dont run the mpg123 in the background from the
script, otherwise you'll quickly have hundreds of mpg123 processes running ;)



=====
Jacob Hawkes, B. Eng (CSE)
jakehawkes2001 (AT) yahoo (DOT) com
http://www.infinitylimited.net/

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree