Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: a perl program to create two way connection with the server

by atcroft (Abbot)
on Mar 18, 2015 at 14:22 UTC ( [id://1120447]=note: print w/replies, xml ) Need Help??


in reply to a perl program to create two way connection with the server

Your last line ("this creates a one way connection...") is incorrect-what you have done at that point is to make a connection to the remote server and authenticate. At that point, you can then do the following (adapted from the Net::SSH::Perl documentation):

my($stdout, $stderr, $exit) = $ssh->cmd($cmd); # ... other code here ... $ssh->cmd($cmd); # ... other code here ...

Hope that helps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found