I have been banging my head for a few hours today on a problem. I am using the latest release of AS Perl and running window xp pro.
It looks like trying to pipe backtick STDERR output to STDOUT doesnt work. Just to make it more simplistic I tried redirecting STDERR to a file like:
my $compileResults = `C:/Perl/bin/perl.exe -c D:/tempPerlScript2860.ipl 2>D:/output.txt`;
...which does not work (meaning I don't see anything within output.txt). However, if I actually just type the following into a windows command prompt, the output.txt file is updated with compilation error message:
C:/Perl/bin/perl.exe -c D:/tempPerlScript2860.ipl 2>D:/output.txt
Any idea on why it would work if I directly input the command into a command line but would not work when I try and execute it via the backticks opperator in a CGI file? From what I can see after reading a lot of information on the subject, it should work fine. Note that I am trying to send it to a file since 2>$1 is not working either.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.