From: Austin S. <te...@of...> - 2009-01-26 22:50:08
|
On Thu, Jan 22, 2009 at 12:58:25AM -0800, Venkat_ch wrote: > > Hi, > I've a test automation script. i need to send 'Contol+G' signal to make the > tool to change the mode. > Please let me know how to send 'control+G' signal to expect handle. > Otherwise let me know incase you know how to send signals to expect handle. > Sure, easy peasy. my($telnet) = Expect->spawn('telnet'); # .... whatever # you can also use the 'send' method. print $telnet "\cG" # send a signal to the telnet process. kill($signal, $telnet->pid()); Austin |