rlogin and subsequent IO communication issue
My application has to use runtime.exec to login to a remote server from a unix environment.
The call to echo out the response hangs.
Here is the code
Process itests =
Runtime.getRuntime().exec("rlogin -l uname tgtSrver ");
InputStreamReader isr =new InputStreamReader(itests.getInputStream());
BufferedReader fromPkMts =new BufferedReader(isr);
OutputStreamWriter osw =
new OutputStreamWriter(itests.getOutputStream());
BufferedWriter toPkMts =new BufferedWriter(osw);
String Line ="";
while((Line = fromPkMts.readLine()) !=null){
System.out.println(Line);
}

