Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Multi-hops with Net::OpenSSH

by salva (Canon)
on May 29, 2009 at 20:07 UTC ( [id://766941]=note: print w/replies, xml ) Need Help??


in reply to Re: Multi-hops with Net::OpenSSH
in thread Multi-hops with Net::OpenSSH

Most Net::OpenSSH commands accept an tty => 1 option exactly just for doing that.

For instance:

$ssh->system({tty => 1}, ssh => $hostB, $commandB);

Replies are listed 'Best First'.
Re^3: Multi-hops with Net::OpenSSH
by silent11 (Vicar) on Jun 19, 2009 at 16:32 UTC
    Hi salva,

    Do I include this this on ScriptA or ScriptB?

    ScriptA ssh's to $host1 and executes ScriptB which ssh's to $host2.

    I tried adding it to ScriptB but get the following error from Net::OpenSSH::new() (which is where my error is coming from)
    Invalid or bad combination of option ('tty')

    Thanks!
      Do I include this this on ScriptA or ScriptB?

      I can't tell you without seeing the scripts source code! post them.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-17 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found