----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

I had a terrible time when revision 1.1.x started up with
$PATH values. Somewhere along the line, $PATH was
no longer set (or was set somewhere else, which I never
did figure out). I have ended up always using full
pathnames to the executable, "perl" in this case. So
invoke "/usr/local/bin/perl /mydir/basic.pl". Fixed my problem.

> I have a java servlet that starts a perl process using
>     Process child = Runtime.getRuntime().exec(progarray);
>
> The code works fine when I run it in a regular application from the
command
> line.
>
> However, from with a servlet, I get a CreateProcess IOException.
>
> "IOException: CreateProcess: perl /mydir/basic.pl  error=2"
>
> Although it didn't throw a security exception, I suspect that is the
cause.
> Not sure if this is correct, nor how to rectify.  Any suggestions?
>
> Platform: Window NT, Apache mod_jserv.
>
> Thanks
>
> Stan Weinronk
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to