Home: Perl Programming Help: Intermediate:
how to handle signal after telnet to remote machine



saurabhsharma
Novice

Mar 20, 2012, 10:58 PM


Views: 3018
how to handle signal after telnet to remote machine

I have a perl script which handles Ctrl+C and calls a sub routine
as $SIG{'INT'} = 'abortSetup';
everything works fine but when the same script telnet to another machine using Net::Telnet and Ctrl+C is pressed, the script exits without calling the trapped subroutine ("abortSetup" in this case)
how to handle the signal after telnet ??