Help for this page

Select Code to Download


  1. or download this
    # Passing <<echo>> <<$$>> executes <<echo $$>>
    $ ssh example.com echo '$$'
    ...
    # Passing <<echo '$$'>> executes <<echo '$$'>>
    $ ssh example.com 'echo '\''$$'\'''
    $$
    
  2. or download this
    sub text_to_shell_lit(_) {
       return $_[0] if $_[0] =~ /^[a-zA-Z0-9_\-]+\z/;
    ...
      perl => ( '-e' => $perl_code );
    
    backticks(ssh => ( '--', $target, $remote_cmd ));