Log in

No account? Create an account
Linux Community's Journal
[Most Recent Entries] [Calendar View] [Friends View]

Saturday, November 8th, 2008

Time Event
control mplayer with fifo

On my main computer I have successfull used the following two scripts:



find . -type f | mplayer -playlist - -shuffle -loop 0



echo "quit" > /home/me/.mplayer/ctrl.fifo

I cd to a dir and do shuffleup to shuffle through all tunes in the dir and below, recursively,
and do shuffledown to stop playing and quit mplayer.
Now, I'm trying to do the same on my laptop from my bedroom (with the main box mounted vai sshfs, shuffling tunes on there).
I did
mkfifo /home/tony/.mplayer/ctrl.fifo
and used the scripts exactly as they are above, which work on the main box,
yet, when I do shuffldown (echo "quit" > ../ctrl.fifo)
nothing happens. My xterm just hangs. (I have to kill mplayer manually with kill pid #blahblah)
Any ideas what I've done wrong here?


posted with TKLJ - tcl/tk lj client.

Current Mood: mood

<< Previous Day 2008/11/08
Next Day >>
About LiveJournal.com