in reply to How to print to STDIN of a cmd and read it's STDOUT

You could also try toying with Expect.
  • Comment on Re: How to print to STDIN of a cmd and read it's STDOUT