in reply to Re^2: Net::SSH2 Interactive command example
in thread Net::SSH2 Interactive command example

That didn't work for me but this does:
$chan2 = $ssh2->channel(); $chan2->blocking(0); $chan2->exec("tail -5 /var/log/authlog\n"); print "**$_" while <$chan2>;