jhuijsing has asked for the wisdom of the Perl Monks concerning the following question:
Have a application where I need to send a command which needs to contain "\"
so the final string to send would be "blah blah item\ 0-9\ 10-14 more blah blah blah"
I have variable $object = 'item 0-9 10-14'
# command template $cmd ="blah blah $object blah blah"; ( $output, $errput ) = $ssh->capture2( $cmd ) or $logger->logdie( "Export failed: " . $ssh->error );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH quoting problems
by salva (Canon) on May 13, 2014 at 06:33 UTC | |
by jhuijsing (Acolyte) on May 20, 2014 at 10:28 UTC | |
|
Re: Net::OpenSSH quoting problems
by kcott (Archbishop) on May 13, 2014 at 03:25 UTC | |
by jhuijsing (Acolyte) on May 13, 2014 at 05:53 UTC | |
by Laurent_R (Canon) on May 13, 2014 at 07:44 UTC | |
by soonix (Chancellor) on May 13, 2014 at 13:08 UTC | |
by jhuijsing (Acolyte) on May 13, 2014 at 21:33 UTC | |
by salva (Canon) on May 14, 2014 at 07:24 UTC | |
|