um, I didnt know that the java task would receive input when fork=no; if it
did, it was not intentional.

For your particular problem, the answer is 'not unless you can code a
solution'

----- Original Message -----
From: "Sadu Venu Gopal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 9:34 PM
Subject: java class is unable to receive user input when fork="yes"


> Hi,
>
> I have a simple class, which will take user input from System.in
> When I use
> <java classname="Client" fork="no"><java/>
> program is receiving the user input and working fine.
>
> If I use fork="yes" the same program is not receiving the user input.
>
> Is there any why by which I can achieve this even if fork="yes" ???
>
>
> Example Code (Client.java):
>         BufferedReader bReader =
>             new BufferedReader(new InputStreamReader(System.in));
>         System.out.println("END to come out from the program");
>         msg = bReader.readLine();
>         while(!msg.equalsIgnoreCase("END")){
> System.out.println("Echo:"+msg);
>             msg = bReader.readLine();
>         }
>         bReader.close();
>
> Regards,
> Venu.
> ph: 5522892 Ext: 280
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to