From: markgo <gol...@gm...> - 2007-07-06 18:55:20
|
Ken Irving wrote: > > On Thu, Jul 05, 2007 at 12:26:20AM -0700, markgo wrote: >> >> Hi, >> >> In some script I'm sending the command that runs some tool that could >> only >> be stopped by pressing Ctrl-C. It does not wait for any input. Is there >> any >> way to simulate this Ctrl-C (that is SIGINT) except closing the session? > Why not just send the signal directly to the process: > > kill SIGINT $tool_pid; > > Ken > > Indeed! Silly me. The tool printed out "press Ctrl-C" and I tried to send Ctrl-C. Thank you Ken, of course it works that way. -- View this message in context: http://www.nabble.com/Is-it-possible-to-interrupt-spawned-session-%28like-Ctrl-C%29-tf4028111.html#a11470738 Sent from the Perl - Expectperl-Discuss mailing list archive at Nabble.com. |