in reply to can't read before closing the writer in open2

Thank you for your replies. Let me try Expect now.

Another question: how would sourcing be done in the case of using Expect? Before spawning the program I am trying to run, I need to export/set/etc. some environment variables so I use a source file. How should I proceed?

  • Comment on Re: can't read before closing the writer in open2