in reply to Trying to pass a "press any key" program in terminal.

Your newline never reaches the external command, because IN isn't connected to anything. (I believe that if you had used use warnings, it would have warned you about the symbol IN only being used once).

BTW normally you'd use expect for this kind of automation process.

Replies are listed 'Best First'.
Re^2: Trying to pass a "press any key" program in terminal.
by joschka (Initiate) on Jan 21, 2008 at 23:11 UTC
    thanks for the reply. The problem is I cannot use expect because I am working on a server where I cannot get permissions to install additional modules. Do you know any way to connect the IN filehandle to the child process? Thanks in advance Oliver