Help for this page

Select Code to Download


  1. or download this
      use Net::OpenSSH;
      use Net::Telnet;
    ...
      my $conn = Net::Telnet->new(Fhopen => $fh);
      my @lines = $conn->cmd("sh ver");
      print join "\n";
    
  2. or download this
      Pseudo-terminal will not be allocated because stdin is not a termina
    +l.
      command timed-out at t1.pl line 6