tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Is System Call can be invoked in the Servlet Container
Date Mon, 14 Jul 2003 19:14:18 GMT

String command = new String();
command = "put your system call here";
java.lang.Process process = java.lang.Runtime.getRuntime().exec(command);
process.waitFor();
if (process.exitValue() != 0)
{
 throw new Exception("My System call did not work! Exit value = " + 
process.exitValue() );
}

John

On Mon, 14 Jul 2003 12:15:46 -0700, Ke Song <ksong@sentius.com> wrote:

> Hi,
> Is System Call allowed in the Servlet Container? Please help.
>
> Thanks.
> Ke
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message