[gs-devel] ps2pdf working in cmd line but not using CGI - gswin32

Jeff remailer at gmail.com
Thu Apr 19 01:11:16 PDT 2007


This seems a bit off-topic, but anyway...

Try using filemon from sysinternals to debug the problem.  It should
show the paths searched when perl tries to run it.  My guess is you
don't have the PATH environment variable set correctly.



On 4/19/07, Cyril Spiro <spiroc at tampabay.rr.com> wrote:
>
> Can anyone help?
>
> I have the path in the environment variables pointed to
> c:/progra~1/gs/gs8.51/lib and can run ps2pdf successfully from any directory
> using the command line.
>
> I can also create a PERL script that runs ps2pdf using system("ps2pdf
> $path_and_file.ps $path_and_file.PDF") and run the PERL script from the
> command line successfully.
>
> However, when I run the PERL script from a browser using CGI, I get a
> "'ps2pdf' is not recognized as an internal or external command, operable
> program or batch file." error.
>
> Any ideas?
>
> Thanks a bunch.
>
> Cyril
>
> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel
>



More information about the gs-devel mailing list