in reply to Process id in Net::Telnet

where is the ^C being read? STDIN or some telnet output?
$ok = $obj->close; #will close your telnet according to the object

The objects arent really recorded as pid's because they are not being called as a seperate process.

Replies are listed 'Best First'.
Re^2: Process id in Net::Telnet
by tsk1979 (Scribe) on Mar 23, 2006 at 07:22 UTC
    STDIN, id from where the script was run. Suppose I do something like $telnet->cmd("Run some program"). the program is running and the user presses ^C on the term where the script was started. I want all telnet sessions to close. Currently the telnet sessions are started inside a subroutine with my $telnet->new.... Suppose the script has 20 telnet sessions started with private my $telnet. In my ^C handling code I want to make sure all these sessions close. I was wondering if I kill the script with ^C will it automatically kill the telnet sessions or will some zombie sessions remain?