I'm trying to run fop (fop is java program that creates PDFs usnig formatting objects) from inside of a Perl program. I simply use system to run fop and redirect the browser to the newly created PDF. I am able to do this on Apache and IIS5, but not IIS6. In an attempt to find out why this no longer works I've changed system to open.
open (POO, "logfile") or die "Can't open logfile: $!";
my $FOP = "$fop -xsl $XSL -xml $XML -pdf $PDF |";
print POO $FOP;
open (HUH, $FOP) or die "Can't run fop: $!";
while (<HUH>) {
print POO $_;
}
When run I die and get "Bad file discriptor" in $! on the open statment.
$FOP (the command) is correct and executes from the command line. Piping the output works in IIS5 without error.
Does anyone have any idea what IIS6 wants? Or suggestions on what I can do to track this down.
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.