Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: problem with java function which runs a Unix command

Re: problem with java function which runs a Unix command

From: John Leslie <johnleslie_at_madasafish.com>
Date: 11 Feb 2004 00:47:16 -0800
Message-ID: <4412dd31.0402110047.66a6ded@posting.google.com>


Thanks

I now run the command from a script and call the script from the java proc. That seems to work fine. I can run the procedure hundreds of times.

However eventually I get an error 3 generated by the following bit of code

    try {

         rc = p.waitFor();
        } catch (InterruptedException intexc) { rc = 2; }

    } catch (Throwable t) { rc = 3; }

How can I output details of what the error is? presumably t has some values I can interogate?

Bricklen <bricklen-rem_at_yahoo.comz> wrote in message news:<j_NVb.15099$964.13901_at_edtnps84>...
> John Leslie wrote:
> <snip>
> IIRC, you are correct in assuming that the redirect is the problem. Tom
> Kyte has that detailed somewhere on his web site, since that's where I
> discovered that I had the same problem when I was using writing some
> similar code.
Received on Wed Feb 11 2004 - 02:47:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US