On Thu, Nov 26, 1998 at 05:55:16PM +0800, optima wrote:
> my linux fan : thank you very mach!
> I has try this method before I mail my first  letter.
> I found if my code don't invoke "waitfor()". I can get the 
> inputstream of the new process. so I try use printstream to 
> write new password to the stream and invoke the "waitfor()"
> but the process do not go on .(I use the "ps " see it).
> 
do you mean that if you don't call "waitfor()" you don't get the streams?
or did i missundertand?
if this is it it's pretty stupid, you should be able to grab the streams
and anyway the waitfor() should stuck the thread until all is done
(i mean you already read the confirmation question and typed the new
password and he's not waiting for input anymore and he called the exit()
method and you closed all streams).
try to call waitfor() only when you're sure you don't need to type
anything else.

Reply via email to