command formatting
am 05.05.2011 13:22:53 von Irfan Sayed
--0-1793721073-1304594573=:1750
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
=A0Hi all,
i have command like this:
signtool.exe sign /f "\\bvct=
rlbm18-\Digital Signature\sympfx.pfx" /p "test"=A0 "C:\workspace\ESM\Conver=
gence\Trunk\bin\ESMPolicyToCCSStandard.exe"
i need to execute this com=
mand in perl script. i need to use qx/command/;=0Abut i am stuck in formatt=
ing this command. there are so many syntax error
can you please refor=
mat this command with proper double qoutes, single quotes wherever necessar=
y
=0Aplease let me know
--irfan=0A
--0-1793721073-1304594573=:1750--
Re: command formatting
am 05.05.2011 14:06:42 von Rob Dixon
On 05/05/2011 12:22, Irfan Sayed wrote:
>
> i have command like this:
>
> signtool.exe sign /f "\\bvctrlbm18-\Digital Signature\sympfx.pfx" /p "test" "C:\workspace\ESM\Convergence\Trunk\bin\ESMPolicyToCCSStanda rd.exe"
>
> i need to execute this command in perl script. i need to use qx/command/;
> but i am stuck in formatting this command. there are so many syntax error
>
> can you please reformat this command with proper double qoutes, single quotes wherever necessary
Is the command line correct as it stands? Does it work from the command
line?
If you use a single-quote as an alternative delimiter for qx, then
interpolation (and therefore escape sequences) are disabled. The only
characters that need escaping then are the pair of backslashes, like this:
qx'signtool.exe sign /f "\\\\bvctrlbm18-\Digital Signature\sympfx.pfx" /p "test" "C:\workspace\ESM\Convergence\Trunk\bin\ESMPolicyToCCSStanda rd.exe"'
HTH,
Rob
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/