http://qs321.pair.com?node_id=11118407


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