Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by haukex (Archbishop)
on Jun 24, 2020 at 09:43 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118407]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found