I had posted this earlier on the Perl-Win32-Web mailing list, and am
reposting here in case anyone here has the joy of running perl under IIS
6 (not my first choice, but the environment in which this not has to
work).
I have a program running under IIS 5 (Windows 2000) which contains the
following lines calling one of the XPDF tool set:
my $pdfextraction = "pdftotext.exe";
my $file = "my.pdf";
my $extractionfile = "-";
my $text = qx($pdfextraction, $file, $extractionfile);
When I go to migrate it, the perl script will return the text output
from the command windows on Windows 2003 (I'm assuming because <STDOUT>
*is* the command window) but not when called from IIS 6. Within IIS6 it
will execute the rest of the code but not assign the output to $test.
The pdftotext.exe has IUSR_machine privileges for Read/Execute.
The IIS application has scripts and executables (is this necessary?)
I even tested with Web Service Extensions, by added a path to the
underlying executable plus two "%s" to handle the command line
variables. (is this necessary?)
No joy.
Is this impossible or just a minor configuration tweak away from working?
Walter Lewis