View Full Version : [bash] key press at shutdown

July 23rd, 2010, 06:49 PM
Hi, I'm a new user in here.
I'm stuck with a script that uses ffmpeg in grabber mode for the whole session time and, according to my needs, should somehow simulate the press of the "Q" button (to stop the grabbing operation) just before shutdown.
How can I manage to do it? Perhaps through a second script, passing the handle of the first one's window as argument? (don't even know whether it's something allowed in bash :p )