No announcement yet.

Re: Daemonized MP3 player (linux)

  • Filter
  • Time
  • Show
Clear All
new posts

    Re: Daemonized MP3 player (linux)

    --- Jake Hawkes <jakehawkes2001 (AT) yahoo (DOT) com> wrote:
    > I think it would be as simple as this:
    > mpg123 http://localhost:9000/stream.mp3 &
    > run it once, and it should be happy forever. Granted, I have not
    > tested this (no soundcard in
    > server)
    > you could wrap this in a script that simply sits in a forever loop:
    > #!/bin/sh
    > while (1)
    > do
    > mpg123 http://localhost:9000/stream.mp3
    > # if we get here, mpg123 died
    > # could send email, write something to the slimp screen,
    > whatever
    > done

    In my experience, mpg123 crashes often with input from the SLIMP3
    stream. I believe this is mpg123's fault. I would recommend either
    finding another command line streamer - or putting mpg123 in a loop to
    restart when crashed. This is all assuming you have trouble, of course.


    Do you Yahoo!?
    Protect your identity with Yahoo! Mail AddressGuard