Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Net::OpenSSH -T option

by salva (Monsignor)
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');


Comment on Re: Net::OpenSSH -T option
Select or Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-09-30 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (377 votes), past polls