Didn't see any issue with wc, and following code worked.
use Net::SSH2; use strict; my $ssh = Net::SSH2->new(); $ssh->connect("host") or die "Unable to connect host\n"; $ssh->auth_password("id", "password") or die "Failed to auth\n"; my $channel = $ssh->channel() or die "Channel creation failed\n"; $channel->exec("wc *"); while (<$channel>) {print;}
In reply to Re: Net SSH problems
by PeterPeiGuo
in thread Net SSH problems
by perlinmyveins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |