Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How can I pass an open session of Net::SSH2 to a script running in a forked subprocess?

by salva (Abbot)
on Oct 17, 2012 at 19:46 UTC ( #999599=note: print w/replies, xml ) Need Help??


in reply to How can I pass an open session of Net::SSH2 to a script running in a forked subprocess?

This is relatively easy to do with Net::OpenSSH.

For instance, the following command will run a remote command through ssh and attach it to a local command (a la dpipe(1)):

my $ssh = Net::OpenSSH->new($host); my $pid = $ssh->spawn({stdinout_dpipe => \@local_child_cmd}, @remote_command);
  • Comment on Re: How can I pass an open session of Net::SSH2 to a script running in a forked subprocess?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999599]
help
Chatterbox?
[GotToBTru]: I suppose the actual details about what is necessary to actually do something is kept fuzzy deliberately
[LanX]: the interview was with the guy who designed the process
[LanX]: in the 70s
[GotToBTru]: so the font on the card is probably NOT Comic Sans
[GotToBTru]: that's a relief
[LanX]: Bruce_G._Blair
[choroba]: as in embossed card?
[Discipulus]: ironically from his pubblications: "Can Disarmament Work?"
[erix]: when is the bird-brain's inauguration tweet?
[erix]: (wasn't augur something to with birds too?)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-01-20 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.