- Did you have a look at the result code of the statement ?
  (Don't forget to call p.waitFor() before calling p.exitValue()

- Did you have a look at the stdout and stderr of the command ?
  (Print out the content of getInputStream() and getErrorStream())

What do they return ? 

> -----Ursprüngliche Nachricht-----
> Von: Roman Mikhailov [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 24. Juli 2002 22:43
> An: Tomcat Users List
> Betreff: Re: Unix command from jsp does not work
>
>  Process p = Runtime.getRuntime().exec(new 
>  String[]{"/bin/sh","-c","echo [EMAIL PROTECTED] |
/root/bin/bulkmakemail"});
> For some reason I'm not able to run ANY unix commands from jsp
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to