in reply to Trying to connect to MSSQL and return result. Script hangs indefinitely.
Try this to reproduce the issue:
UPDATE:perl -e 'print qx|printf "%b" "this is a q\'uot\'ed test|'
More likely, each single quote used inside the backticks needs to be double-single quoted replaced by the sequence '"'"' , to escape it.
UPDATE 2:
In the previous example, the backslashes are useless. To produce single quotes in the output, the following works (on Linux (SLES). The O.P had hints that although he's using MSSQL, the binaries (e.g. /usr/bin/printf) point to Linux):
Note - that the slightly shorter alternate replacement for a single quote '\'' used above also works.perl -e 'print qx|echo "%b" "this is a qu'"'"'oted'\'' test"|,"\n"'
Profanity is the one language all programmers know best.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to connect to MSSQL and return result. Script hangs indefinitely.
by Anonymous Monk on Aug 06, 2014 at 21:23 UTC | |
by NetWallah (Canon) on Aug 06, 2014 at 21:33 UTC | |
by Anonymous Monk on Aug 06, 2014 at 21:51 UTC | |
by NetWallah (Canon) on Aug 07, 2014 at 00:50 UTC |