Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 browsing the Monastery: (7)
As of 2014-12-20 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls