Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 30714 invoked from network); 24 Jun 2003 08:54:00 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 24 Jun 2003 08:53:59 -0000 Received: (qmail 29512 invoked by uid 97); 24 Jun 2003 08:56:33 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 29505 invoked from network); 24 Jun 2003 08:56:32 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 24 Jun 2003 08:56:32 -0000 Received: (qmail 29178 invoked by uid 500); 24 Jun 2003 08:53:38 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29162 invoked from network); 24 Jun 2003 08:53:37 -0000 Received: from moutng.kundenserver.de (212.227.126.187) by daedalus.apache.org with SMTP; 24 Jun 2003 08:53:37 -0000 Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19UjYk-00066x-00 for tomcat-user@jakarta.apache.org; Tue, 24 Jun 2003 10:53:50 +0200 Received: from [145.254.188.234] (helo=dialin-145-254-188-234.arcor-ip.net) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 19UjYk-00005s-00 for tomcat-user@jakarta.apache.org; Tue, 24 Jun 2003 10:53:50 +0200 From: Holger Klawitter To: "Tomcat Users List" Subject: Re: How use an external C program in a Servlet Date: Tue, 24 Jun 2003 10:53:37 +0200 User-Agent: KMail/1.5 References: <01d101c33a25$738fa2e0$4100a8c0@jbtnet.org> In-Reply-To: <01d101c33a25$738fa2e0$4100a8c0@jbtnet.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200306241053.37924.lists@klawitter.de> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Am Dienstag, 24. Juni 2003 09:51 schrieb Michel Jubault: > Hi there !! > > I've a little C program. This computes some variables and return a kind = of > statistic result. I need it in a servlet. But I don't know how to call it. > I'm using Tomcat 4.1.24. > Where this program must be to be launched ? > How can I pass arguments to C program and use in servlet the return value= ? The normal java contains the solution: http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Runtime.html#exec(java.la= ng.String[]) However, this imposes a lot of security concerns. You will probably have to= =20 dig into $TOMCAT_HOME/conf/catalina.policy. Mit freundlichem Gru=DF / With kind regards Holger Klawitter =2D- lists@klawitter.de --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org