A little demo for Net::SSH2 Try using the shell method:
my $chan = $ssh->channel(); $chan->blocking(0); $chan->shell(); print $chan "sudo -u bob date\n"; print "LINE : $_" while <$chan>; $chan->close;
In reply to Re: tty Problem while executing command's with sudo over Net::SSH2
by keszler
in thread tty Problem while executing command's with sudo over Net::SSH2
by dipesh777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |