in reply to Input Enter while Execution of a process

Did you try simply piping echo?

system ("echo | zsh foo.sh");

I would rather do this than head off down the Expect rabbit hole if it is all that's required.

Replies are listed 'Best First'.
Re^2: Input Enter while Execution of a process
by Corion (Patriarch) on Sep 04, 2017 at 11:38 UTC

    I think the problem of the OP is that they (only) want to take additional actions when the other script asks for input, maybe warranting something like IPC::Run3 or Expect.

    But without further information, this is pure speculation on my part.