Instead, read lines until you get the shell prompt back. For instance:
my $channel = $ssh->channel(); $channel->shell(); print $channel "term len 0\n"; while (<$channel>) { last if /^>$/; push @junk, $_; }
In reply to Re: Perl Net::SSH2 on Window
by salva
in thread Perl Net::SSH2 on Window
by livenode
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |