in reply to Net::OpenSSH quoting problems
Or if you want to keep the command template as it is:($output, $errput) = $ssh->capture('blah', 'blah', $object, 'blah', 'b +lah');
Read the Shell quoting section on the module documentation.my $quoted_object = $ssh->shell_quote($object); $cmd = "blah blah $quoted_object blah blah"; ($output, $errput) = $ssh->capture2($cmd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::OpenSSH quoting problems
by jhuijsing (Acolyte) on May 20, 2014 at 10:28 UTC |