in reply to Run a program and allow user to interactivly stop it.
If you are willing to go to an event-loop system,(GLib,POE,Tk,Gtk2,etc) many cool things are possible. See Readkey with timer using Glib for a Glib control loop, and Perl/Tk front-end to mplayer for some tricks on how to control mplayer.... you need to use it's slave mode.
|
|---|