[MPlayer-users] remote-control mplayer
faxmodem at free.fr
faxmodem at free.fr
Thu Jul 28 15:10:10 CEST 2005
On Thu, Jul 28, 2005 at 02:10:10PM +0200, Guillaume POIRIER wrote:
> > Is it possible to remote-control mplayer from another process, like I can remote
> > XMMS using xmms {-r,-f} ?
> My first thought would be to use slave mode through a named pipe. Read
> DOCS/tech/slave-mode.txt (or smth similar)
good idea.
I tried it:
| mkfifo /tmp/cmd
| cat /tmp/cmd | mplayer -slave /path/to/some/file
| echo pause >/tmp/cmd
this works however only once, as the fifo is somehow reset.
I could workaround this using an endless loop
| while :; do cat /tmp/cmd | mplayer -slave /path/to/some/file
but then again that wouldn't work with "pause" :o)
What could I do for the named pipe to remain open after an echo?
More information about the MPlayer-users
mailing list