Ellen Spertus wrote:

> At 09:57 PM 5/18/2001 -0500, Joi Ellis wrote:
> >Lynx is writing the rendered text to stdout, which you're reading and
> >throwing away.  Why not read it and write it to the file yourself?
>
> I thought doing it with redirection would be simpler, but apparently
> not.  I rewrote it so my program grabs the lynx output directly, and all
> works.  I still get a hang on p.waitFor, so I replaced it with p.destroy
> (after I've read the strings).  I'd still like to know why waitFor isn't
> working, but I'm happy my program is running.

Lynx is probably sitting there waiting for input. Closing the stream to its
stdin (Process.getOutputStream().close()) might help it decide to
terminate.

Nathan


>
>
> Thanks for your assistance.
>
> Ellen
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to