LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Desktop (http://www.linuxquestions.org/questions/forumdisplay.php?f=74)
-   -   music on console "moc" autostart with fluxbox (http://www.linuxquestions.org/questions/showthread.php?t=4175431044)

sgmart 10-08-2012 12:22 AM

music on console "moc" autostart with fluxbox
 
Since moc is a music server, and mocp is the client to play music files.

I want to play my music collection with fluxbox window manager, so I've tried add this to ~/.fluxbox/startup file
Code:

#!/bin/sh
...
mocp -S &  # start moc server
mocp -p & # start music player
...
exec fluxbox

but nothing yet!

Anyone know how to perform this task?

segmentation_fault 10-09-2012 12:16 PM

Quote:

moc -S & # start moc server
I think this should be
Code:

mocp -S
without background (&) since -S starts the server and exits. Then
Code:

mocp -p
again without background (&) should start playing. I think just mocp without any arguments brings up the ncurses interface.

unSpawn 10-09-2012 05:51 PM

...also I had to make sure my playlist was populated or "-p" wouldn't play anything.


All times are GMT -5. The time now is 11:47 PM.