No such thing as a small change | |
PerlMonks |
Re: tty Problem while executing command's with sudo over Net::SSH2by salva (Canon) |
on Dec 07, 2011 at 07:50 UTC ( [id://942175]=note: print w/replies, xml ) | Need Help?? |
I guess you have to call the pty method on the $chan to get a pseudo tty allocated on the remote side.
Also, as it seems that you are on a Unix/Linux system, you may like to use Net::OpenSSH instead of Net::SSH2:
In Section
Seekers of Perl Wisdom
|
|