tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Stalp <st...@imbei.uni-mainz.de>
Subject starting a binary by calling a servlet
Date Mon, 13 Jun 2005 14:01:57 GMT
Hello out there,
I want to start a process, a program by calling a servlet.
The servlet itself is creating a runtime on its vm.
It looks something like this:
[code]
String cmd1 = "/usr/bin/myproc";
    Runtime rt = Runtime.getRuntime(); 
    Process myproc = rt.exec( cmd1 ); 
    rueck_gabe = myproc.waitFor();
[/code]

But at the Moment I get an error that this is not allowed for a Servlet which 
seems logical to me. So I have to change the catalina.policy.

The question is now: how?
What I have to do, to enable my servlet to start binarys on my host?

Can anybody help me?

Thank you very much!

Gruss Christian

-- 
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: stalp@imbei.uni-mainz.de

---------------------------------------------------------------------
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