From: markgo <gol...@gm...> - 2007-07-06 18:59:17
|
Bruno Negrao-3 wrote: > > Why don't you add a signal handler to your perl script that when it > receives the CTRL-C > it calls the > > $exp->hard_close(); > > on the spawned expect object? > > regards, > > bruno > > Thanks for your response, but the situation is a bit different. I'm testing someone's tool. I can't modify it. I actually need to kill some of its sub-processes. Ken's suggestion works fine. -- View this message in context: http://www.nabble.com/Is-it-possible-to-interrupt-spawned-session-%28like-Ctrl-C%29-tf4028111.html#a11470788 Sent from the Perl - Expectperl-Discuss mailing list archive at Nabble.com. |