On Wed, Apr 25, 2001 at 05:30:41PM +0200, Ralph Einfeldt wrote:
> Process mProcess = 
>   Runtime.getRuntime().exec(new String[] {<Command>, <arg0>[, arg1-n]}); 
> 
> BufferedReader mInput = new BufferedReader(new
> InputStreamReader(mProcess.getInputStream()));
> 
> String mLine;
> while ((mLine = mInput.readLine()) != null) {
>   doSomeThingWith(mLine);
> 
>   // if you wan't to show the progress in the browser
>   // you should do something like
>   // out.flush(); // Replace this with your servlet output stream
> }
> 
> try {
>   mProcess.waitFor();
> } catch (Throwable ex) {
> }
> 
> mProcess.destroy();

I'm still getting 

Reaped pid = 811, status = 0 in the window where I started tomcat.


-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

Reply via email to