If it's never going to need any more response than that, then
this should do the trick - just change your open like so (of
course I can't test this with your java app):
open(RES, "echo \n | $program |") or die "Unable to run $program: $!\n";Update: That's odd that it didn't work - I even tested it very simply using "dir /p",
but perhaps it is a difference between Win95 and your platform.