Lonny has asked for the wisdom of the Perl Monks concerning the following question:
sub openport{ my ($name,$ip,$port)= @_ ; print "Connecting to $name @ $ip:$port " if $debug > 1; my $nameport = $name.$port; $$nameport = new Net::Telnet (Timeout => 120); $$nameport->errmode("return"); $$nameport->open(Host => $ip, Port => $port); if (($error = $$nameport->errmsg) ne ""){ return $error; } else { return "OK"; # Now we send F-11 change the session to clear text. $$nameport->cmd("[Here's the problem]"); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Out of control in Net::Telnet
by pg (Canon) on Nov 24, 2002 at 19:45 UTC | |
by premchai21 (Curate) on Nov 24, 2002 at 20:19 UTC | |
by Lonny (Novice) on Nov 24, 2002 at 19:57 UTC | |
Re: Out of control in Net::Telnet
by dakkar (Hermit) on Nov 25, 2002 at 14:08 UTC |