in reply to Re: Shelling a new process with console I/O in Windows
in thread Shelling a new process with console I/O in Windows

There is still no clear explanation of what exactly you are trying to achieve with your code? Rather than posting more code, please try to explain what it is that you are trying to achieve.

For example, one reading of the words you've posted so far is that you want to:

  1. start an executable from a perl program, passing it a filename via the command line;
  2. Allow the user to interact with that program via the console;
  3. Have the perl script capture the output from the program;
  4. Then print that output on the (same?) console.

But if that is a correct reading, I cannot see how you thought the code you've posted so far was ever going to acheive that--so, perhaps I mis-reading the words?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^2: Shelling a new process with console I/O in Windows