Hello all,
I have this code that is not working:
This code is copied and pasted right out of CPAN. I get this output:
Any help is appriciated.
Nick
If at first you don't succeed, don't try skydiving.
I have this code that is not working:
Code:
use Net::SSH qw(sshopen2);
foreach my $cmd1 (@cmds) {
next if ($cmd1 =~ /\s+/);
sshopen2("$cliuser\@$ip", *READER, *WRITER, "$cmd1") || die "$!";
while (<READER>) {
chomp();
print "$_\n";
}
close(READER);
close(WRITER);
}
This code is copied and pasted right out of CPAN. I get this output:
Code:
'ssh' is not recognized as an internal or external command,
operable program or batch file.
Any help is appriciated.
Nick
If at first you don't succeed, don't try skydiving.