I wrote this C program that I wish to invoke from a CGI perl script.
As a backgrounder, my C program uses the Adobe FDF Toolkit and is
written to parse out PDF form data (FDF) passed via CGI.
FDFReadParse reads the input file and does a printf of the
output to STDOUT.
I am using NT4, IIS4, and Perl 5.6 Build 623, and I write something
like:
my $in = `cmd /C /tools/FDFReadParse /tmp/fdf$$`;
$in SHOULD contain the output from the FDFReadParse program
This works fine running as a .plx and works fine from the
command line, but does NOT work if running as a .pl
Does anyone have any idea why this doesn't work when running
as a .pl? It seems to invoke the command in the backticks,
but I get a null/zero bytes on return (even if I redirect
the output to a file). I've checked permissions (RWX), etc...
and have been fighting with it for hours.
Regards,
Chris Stuber (mapsurfer)
[EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web