I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-07-15 15:32:34.067131-07 by ankur
How to get pty with Net::SSH2?
my $ssh = Net::SSH2->new; $ssh->connect($hostname, $port); $ssh->auth(username => $username, password => $password); my $chan = $ssh->channel(); $chan->blocking(0); $chan->ext_data('merge'); while (1) { print " $pwd >"; my $cmd = <STDIN>; last if not defined $cmd; print $chan $cmd; print while <$chan>; print $chan "pwd\n"; chomp($pwd = <$chan>); }
Direct Responses: Write a response