Play Audio on Headless Server?

Doran L. Barton fozz at iodynamics.com
Wed Jul 18 10:37:07 MDT 2007


Not long ago, Kimball Larsen proclaimed...
> Ok, so everyone will probably get sick of all my questions this week,  
> but I've been tossed into a bit of unfamiliar territory (I'm a  
> programmer, not a sysadmin) this week with setting up a new server  
> here at work.  One of the functions they need this server to do is to  
> play our hold music for the phone system.  The old server that this  
> is replacing simply played music out of itunes (yes, the old server  
> is a mac mini) and an audio cable connects the mac to the phone system.
> 
> So, the new server is headless, and I don't have X installed at all.   
> What sort of solutions are there out there that I can use to just  
> start music playing out of a pre-defined playlist when the system  
> boots and just have it play continuously forever?


#!/bin/sh
while true
do
    mplayer *.mp3
done

A more elegant solution would be to use mpd <http://www.musicpd.org/>.

-=Fozz

-- 
fozz at iodynamics.com is Doran L. Barton, president/CTO, Iodynamics LLC
Iodynamics: IT and Web services by Linux/Open Source specialists
 "Toilets of man."
    -- Restroom sign in China
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20070718/e94988f1/attachment.bin 


More information about the PLUG mailing list