Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: safely passing args through ssh

by Tanktalus (Canon)
on Jul 26, 2011 at 17:05 UTC ( [id://916803]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @cmd = (
      '/usr/bin/perl', -e => quote_cmd($script)
    );
    
  2. or download this
    @cmd = ('perl', '-e', $script);
    # pick which one you need:
    system(@cmd);
    system('ssh', $host, quote_cmd(@cmd));
    system('ssh', $proxy, quote_cmd('ssh', $host, quote_cmd(@cmd)));
    # etc., etc.,
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-24 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found