Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Calling Windows Batch from Perl, double-quote appearing out of nowhere

by karlgoethebier (Priest)
on Nov 09, 2012 at 14:52 UTC ( #1003149=note: print w/ replies, xml ) Need Help??


in reply to Calling Windows Batch from Perl, double-quote appearing out of nowhere

Try (in testing.bat): echo XXXXXXX  > X_%%2.log 2>&1.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»


Comment on Re: Calling Windows Batch from Perl, double-quote appearing out of nowhere
Download Code
Re^2: Calling Windows Batch from Perl, double-quote appearing out of nowhere
by rovf (Priest) on Nov 09, 2012 at 15:40 UTC
    Indeed, this works too! (big surprise!)

    UPDATE: Sorry, responded to quickly. No, it doesn't work. The %% is a notion to escape the percent character, so instead of interpolating the 2nd argument, it just inserts a literal percent sign...

    -- 
    Ronald Fischer <ynnor@mm.st>

      not really :) you're using cmd to call cmd and the escaping is botched -- double interpolation

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2014-12-28 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls