Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: perl windows backtick problem

by Anonymous Monk
on Sep 22, 2011 at 08:40 UTC ( #927294=note: print w/ replies, xml ) Need Help??


in reply to Re: perl windows backtick problem
in thread perl windows backtick problem

If I maually run the command without any args, it runs fine: ... I have to qualify the script with paths containing such special characters.

But you DONT have to split it into two, quote and escape the WHOLE path to the exe, use Re^3: system() implementation on Windows (again)

cmd /x /c doesn't like newlines ...

Read http://perldoc.perl.org/perlop.html#qx%2fSTRING%2f

$ perl -V:sh sh='cmd /x /c';

Read help cmd

Read exec always invokes the shell? win32

Use IPC::System::Simple capture/capturex


Comment on Re^2: perl windows backtick problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-07-31 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls