Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Net::OpenSSH -T option

by salva (Abbot)
on Aug 10, 2013 at 06:58 UTC ( #1048882=note: print w/replies, xml ) Need Help??


in reply to Net::OpenSSH -T option

Adding -T to the ssh command line used to start the master connection is useless.

Once you a have Net::OpenSSH object connected to the remote host, you can run remote commands without a tty using the tty flag:

$ssh->system({tty => 0}, 'ls -l');

Replies are listed 'Best First'.
Re^2: Net::OpenSSH -T option
by kwolfte (Initiate) on Aug 12, 2013 at 22:02 UTC

    Thanks. It seems that RequestTty=no is only available for more recent versions of openssh, unfortunately. I could use the -T option but that's ok now, the tty flag will do

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048882]
help
Chatterbox?
[virtualsue]: I recommended dbic-migration even though I am having trouble with it this week. It might be my fault.
[ambrus]: wow! I haven't seen you here for a long time, virtualsue
virtualsue waves back
[Eily]: it would have been 2 years in 2 weeks actually. And welcome back virtualsue :)
[Corion]: I think I saw virtualsue more recently in person than online :-D
[virtualsue]: It's true that there was a bigger gap between the 2 yr old post and the one before it
[ambrus]: yes, I probably just didn't see you two years ago, because I'm not in perlmonks much
[virtualsue]: Nor am I :-)
[talexb]: virtualsue Heh .. long time no see! :)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-09-26 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (295 votes). Check out past polls.

    Notices?