http://www.perlmonks.org?node_id=213067


in reply to Re: Re: Send data to STDIN of a exec'ed program
in thread Send data to STDIN of a exec'ed program

I would like to be able to redirect STDIN of the exec'ed process to the console, once the child process has finished writing the data to it.

I'm sorry I have to say this. what you said is not what you want. what it sounds like to me is:
you want to run a script that takes STDIN and sends it both to the child process and to the console.
what it sounded like you said was:
you want to pull the date the the exec'ed program just took in out of it and send it to the console and back to the program that was called.

jjdraco
learning Perl one statement at a time.
  • Comment on Re: Re: Re: Send data to STDIN of a exec'ed program