Runtime.exec() problem (jdk1.3.1+rh7, jdk1.4.2+rh9)



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
.



Relevant Pages

  • Re: Get Rid Of Acrobat!! (was:...well, it got too long...)
    ... Yes, it's bigger as its really an image but, PDF is transportable, ... much faster Acrobat Reader REPLACEMENT. ... HTML can do EVERYTHING Acrobat can do, ... As to linux, I've lost interest in the version du jour. ...
    (comp.os.cpm)
  • Re: Converting to Linux
    ... It creates horrid nonstandard HTML. ... > If this is the only reason you're interested in Linux, ... The best HTML editor on windows is Wordpad, ... service for students who need to do their work. ...
    (alt.linux)
  • Re: Recommendations sought on replacements for some MS-OS applications
    ... No need for these things if the digital still camera follows the USB ... were supported under Linux, right? ... If you're composing HTML, ... then display all dead links in a different ...
    (comp.os.linux.misc)
  • Re: ATTN SELF-STYLED LIST POLICE (was RE: Mr. Day)
    ... > Thomas Cameron wrote: ... > HTML is the default on most mailers. ... Linux community embraced me - in spite of some *really* dumb questions I ...
    (Fedora)
  • RE: [SLE] Home Page equiv for Linux??
    ... > I am looking for suggestions on a HTML WYSIWYG editor for Linux. ... It might be a little much, but I use the heck out of Dreamweaver MX (not MX ...
    (SuSE)