hi,<br><br>I have written a small java class (say InputReader ) that reads the input from the keyboard and ends when the user enters the 'Ctrl+Z'. <br><br>I have another class that starts a Process thru Runtime.getRuntime().exec() method and executes the above <br>program "java InputReader" . The problem is that once i start the Process and waitFor the process to end using the Process.waitFor() method it never returns. <br><br>This happens even when i get the OutputStream of the Process and write something to it and then close it.<br><br>thanks in advance <br><br>venky