Hello everybody

I'm trying to execute a unix command from within the jsp page, smth like

Process p = Runtime.getRuntime().exec(new String[]{"/bin/sh","-c","ls -l >
dat.foo"});

.. And it doesn't work, I mean nothing happens , no error messages, nothing


However this piece of code works fine in a standalone Java program
What am I doing wrong?

My system: Linux Red Hat 7.2, Apache 1.3.22, Tomcat 4.0.3, WARP Connector

Thanks in advance

roman



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

Reply via email to