On Tuesday, February 26, 2002, at 01:13 AM, Nicolas DEVERGE wrote:
I'm a newbie using mad and I wish to control madplay through its stdin, let's say, I wish to pause, resume or quit madplay by sending a P, Q or else character in its standard input with another program (maybe through a socket), so is it possible with madplay ? And how works the tty-control parameter ?
madplay reads keyboard input from its controlling terminal, so to make this work you would need to mess with master and slave PTYs, or use a tool like `expect'.
An alternative would be to send signals to the madplay process: SIGSTOP would pause, SIGCONT would resume, and SIGINT would quit.
-- Rob Leslie rob@mars.org