command formatting

--0-1793721073-1304594573=:1750
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

=A0Hi all,=0A=0Ai have command like this:=0A=0Asigntool.exe sign /f "\\bvct=
rlbm18-\Digital Signature\sympfx.pfx" /p "test"=A0 "C:\workspace\ESM\Conver=
gence\Trunk\bin\ESMPolicyToCCSStandard.exe"=0A=0Ai 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 =0A=0Acan you please refor=
mat this command with proper double qoutes, single quotes wherever necessar=
y =0A=0A=0Aplease let me know=0A=0A--irfan=0A
--0-1793721073-1304594573=:1750--
Irfan Sayed [ Do, 05 Mai 2011 13:22 ] [ ID #2059154 ]

Re: command formatting

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 [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Rob Dixon [ Do, 05 Mai 2011 14:06 ] [ ID #2059155 ]
Perl » gmane.comp.lang.perl.beginners » command formatting

Vorheriges Thema: combinations & permutation : how to generate a list of numbers
Nächstes Thema: Open existing HTML page from perl script