[gs-devel] ps2pdf working in cmd line but not using CGI - gswin32
Russell Lang
gsview at ghostgum.com.au
Thu Apr 19 02:03:43 PDT 2007
ps2pdf is a batch file. Check if CGI is allowed to run BAT files, or whether
this is blocked as a security measure.
> From: Jeff <remailer at gmail.com>
> 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
> >
> _______________________________________________
> 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