[2008.12] Pause mplayer on call ?
ta at imada.sdu.dk
Mon Jan 26 10:23:48 CET 2009
On Tue, Jan 20, 2009 at 08:15:04PM +0100, Lothar Behrens wrote:
> I currently do not use any GUI for it, so mplayer may only killed
> with any usefull signal to pause.
> Then how to restart it again.
Assuming you can detect when an incoming call arrives, the following
should be helpful:
A generic way to control terminal programs, that were not designed
with remote control in mind, is to use GNU Screen . Start your
program like this:
$ screen -dmS SOME_NAME COMMAND_TO_RUN
Now you can send input to the program by "stuffing" input to screen:
$ screen -S SOME_NAME -X stuff INPUT_TO_RUNNING_PROGRAM
It is also possible to interact directly with the running program by
"attaching" to the screen session:
$ screen -S SOME_NAME -r
Detach with <C-a>-d.
More information about the community