Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: net::OpenSSH several commands, stdout are mixed up

by jcb (Parson)
on Sep 17, 2020 at 01:27 UTC ( [id://11121857]=note: print w/replies, xml ) Need Help??


in reply to net::OpenSSH several commands, stdout are mixed up

That is because all of the $f_stdout values derived from the same SSH connection are the same handle. You will need a separate SSH channel for each individual traceping. Look at the "connection multiplexing" features in OpenSSH for more.

Edit: So Net::OpenSSH already implements multiplexing, so the problem is something else.

Replies are listed 'Best First'.
Re^2: net::OpenSSH several commands, stdout are mixed up
by salva (Canon) on Sep 17, 2020 at 06:32 UTC
    That is because all of the $f_stdout values derived from the same SSH connection are the same handle

    No, they are not. Every open3 call opens a new channel and returns a different set of pipes attached to the remote process stdin, stdout and stderr streams.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-26 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found