Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: tty Problem while executing command's with sudo over Net::SSH2

by keszler (Priest)
on Dec 07, 2011 at 06:20 UTC ( #942165=note: print w/ replies, xml ) Need Help??


in reply to tty Problem while executing command's with sudo over Net::SSH2

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;


Comment on Re: tty Problem while executing command's with sudo over Net::SSH2
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-08-23 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls