Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL Music player?< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 26 2006,02:31 QUOTE

Just throwing this out....no idea if it would work.....

while true do
mount /mnt/sda1 2>/dev null && \
xmms /mnt/sda1/ && \
umount /mnt/sda1 && \
sleep 10
done

I assume this would try to mount sda1 and play the music.  When it's done playing it will umount, wait 10 seconds, and then repeat.
If it doesn't succeed it will continue to try until you kill the process.

...or so i assume =o)


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Aug. 26 2006,02:34 QUOTE

Just a side note: isn't hot swapping usb drives not recommended?  Like you should unmount/eject them before physically ejecting the drive, or else you could corrupt the fs/files I guess?
Back to top
Profile PM 
Stine Offline





Group: Members
Posts: 7
Joined: Feb. 2006
Posted: Aug. 26 2006,03:58 QUOTE

as it would only be mp3s....im not too worried about damaging a file.....

thanks for the help
Back to top
Profile PM 
7 replies since Aug. 25 2006,01:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: DSL Music player?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code