adam.lapins has asked for the wisdom of the Perl Monks concerning the following question:
The code that is generating the error is:Can't set socket non-blocking: Bad file descriptor at C:/Perl/lib/Net/ +SSH/Perl.pm line 213, <GEN0> line 1
#vpn.pl #log onto vpn and get config open(VPNOUTFILE,">vpnoutput.txt"); use Net::SSH::Perl; my $policy = 0; my $gateway = 0; my $vpn = 0; my $address = 0; my $group = 0; print "\nPlease enter IP: "; $ip = <STDIN>; print "\nPlease Enter Username: "; $user = <STDIN>; print "\nPlease Enter Password: "; $password = <STDIN>; my $ssh = Net::SSH::Perl->new($ip); $ssh->login($user, $password); my($stdout, $stderr, $exit) = $ssh->cmd(get sys);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH::Perl error message
by idsfa (Vicar) on Jun 30, 2005 at 17:10 UTC | |
|
Re: Net::SSH::Perl error message
by salva (Canon) on Jun 30, 2005 at 18:19 UTC | |
|
Re: Net::SSH::Perl error message
by davidrw (Prior) on Jun 30, 2005 at 15:52 UTC | |
by adam.lapins (Initiate) on Jun 30, 2005 at 16:44 UTC |