Trying to migrate a perl script from linux to windows (IIS), I need to
execute a command line from within the perl script.
This snippet worked fine in linux (provided the path is correct), but it
didn't work in windows:

$sys="C:/antiword/antiword.exe -t -w 10000 document.doc >
C:/Inetpub/wwwroot/somedir/document.txt";
system($sys);

The snippet works fine if the script is run from the DOS window, or by
double clicking, but is makes nothing when it is executed as a CGI. I've
double checked that the destination folder has write permissions working
fine. Is the "system(...);" sentence not appropriate under the windows
envirnonment?

Thanks,
Alejandro


_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to