I asked this question earlier, but I'm afraid I wasn't clear enough. I'll try and rephrase the question. I got 2 very good replys but niether really addressed the problem.
Inside of a IIS5 cgi application I run a system call
system($prg);
This app has been moved to IIS6 and the above call fails silently (also with backtics). In a futile attempt to gain some insight as to is going on, I changed the system to an open
open (POO, "logfile") or die "Can't open logfile: $!";
my $PRG = "someprg.bat |";
print POO $PRG;
open (HUH, $PRG) or die "Can't run someprg.bat: $!";
while (<HUH>) {
print POO $_;
}
When run I die and get "Bad file discriptor" in $! on the open statment. This works in IIS5 and Apache, not IIS6. I'm not a windows user and I'm not really sure where to go next. I'm not sure what to make of the 'bad file discriptor' message, and was wondering what was wrong with my use of open, or if any one knew why IIS6 has decided to change the rules? (and what those new rules might be)
PS using XML::ApacheFOP was suggested but I have no control over the server, and was hoping for something I could do remotly.
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.