in reply to Re: Net::OpenSSH quoting problems
in thread Net::OpenSSH quoting problems
It sending a \\ not "item\ 0-7\ 0-9"#with the debug flag set $Net::OpenSSH::debug |= 16; $object =~ s/( \d+-\d+)/\\$1/g; $cmd = qq|blah blah $object blah blah|; ( $output, $errput ) = $ssh->capture2( $cmd ) or $logger->logdie( "bad".$ssh->error ); using the debugger x $object item 0-7 0-9 after substitution x $object item \\ 0-7\\ 0-9' # lot of stuff removed the #open_ex ...... 'blah blah item\\ 0-7\\ 0-9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::OpenSSH quoting problems
by Laurent_R (Canon) on May 13, 2014 at 07:44 UTC | |
|
Re^3: Net::OpenSSH quoting problems
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 | |
by jhuijsing (Acolyte) on May 14, 2014 at 22:35 UTC | |
by salva (Canon) on May 19, 2014 at 08:48 UTC |