Help for this page

Select Code to Download


  1. or download this
    my ($pty,$pid) = $ssh->open2pty
          or die "unable to run remote command show ip arp";
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    my $output = $ssh->capture({stdin_data =>
            "term length 0\nterm width 512\nsh ver\nsh run\nexit\n"});
    print $output;