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: 12 Feb 2004 04:54:24 -0800
Message-ID: <4412dd31.0402120454.73465246@posting.google.com>


I solved this problem myself by adding garbage collection to the java code

JL
johnleslie_at_madasafish.com (John Leslie) wrote in message news:<4412dd31.0402110047.66a6ded_at_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 Thu Feb 12 2004 - 06:54:24 CST

Original text of this message

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