Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Trying to get an external c program to print to a file

by JavaFan (Canon)
on Nov 04, 2011 at 12:43 UTC ( #935916=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Trying to get an external c program to print to a file
in thread Trying to get an external c program to print to a file

But you can write:

system "'$PGMEXEC1' '-arg1=$arg1' '-arg2=$arg2' > '${workingDir}${ps}$ +outputFile1'";
Which works fine, unless any of the variables contains a single quote, or ends in a backslash.


Comment on Re^4: Trying to get an external c program to print to a file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-07-07 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls