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

Re^2: Pass local bash script to remote host via SSH

by haukex (Bishop)
on Jun 24, 2020 at 09:43 UTC ( #11118407=note: print w/replies, xml ) Need Help??


in reply to Re: Pass local bash script to remote host via SSH (updated)
in thread Pass local bash script to remote host via SSH

Note you also need to check close for errors, and I would strongly recommend the list form of open. See Calling External Commands More Safely (near the bottom there's example code).

  • Comment on Re^2: Pass local bash script to remote host via SSH

Replies are listed 'Best First'.
Re^3: Pass local bash script to remote host via SSH
by soonix (Canon) on Jun 24, 2020 at 10:06 UTC
    Good catch, updated

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-09-23 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (132 votes). Check out past polls.

    Notices?