Runtime.exec() problem (jdk1.3.1+rh7, jdk1.4.2+rh9)
- From: Michal M <misiador@xxxxxxxxx>
- Date: Thu, 28 Jul 2005 10:28:43 +0200
Hello,
I've got a servlet which runs linux binary file and creates java.lang.Process, takes its output (getInputStream()) and writes it on .html page via BufferedReader.
Old version of linux executable works fine, but I recently got a new version of this program which must be deployed and here's problem:
- new executable works fine when running from linux command line (gives the same output - about ten lines - the same text, the same md5sum of outputted file as old one)
- getting error stream (from servlet) also works fine
- but rewriting process.getInputStream() on html page (as previous) doesn't
- - under java 1.4.2_07 (rh9) servlet some times works fine but sometimes produces no output - exit value (waitFor()) is 129
- - under java 1.3.1_01 (rh7) servlet doesn't work - everytime exit value is 139! and there is produced no output on page
What can I do? Where the problem cames from?
Please note, I probaly won't be able to gather source code of mentioned linux application (c/c++).
Regards, Michal M .
- Follow-Ups:
- Re: Runtime.exec() problem (jdk1.3.1+rh7, jdk1.4.2+rh9)
- From: Gordon Beaton
- Re: Runtime.exec() problem (jdk1.3.1+rh7, jdk1.4.2+rh9)
- Prev by Date: Re: Style and practice question: use of interfaces
- Next by Date: opening for java professionals with 5+ exp
- Previous by thread: How to covert String("6,400.0") to Double ?
- Next by thread: Re: Runtime.exec() problem (jdk1.3.1+rh7, jdk1.4.2+rh9)
- Index(es):
Relevant Pages
|