in reply to Execution of external process does not wait in IIS7/Windows

Are you needing read back the output of the external process? If not, the I would use system as cdarke has suggested.

However, if you do need to read back the output, then you might consider using back ticks. Just beware that using back ticks can create problems if you're not careful. (For more details about using back ticks and some of the potential problems, check out one of my posts at Re: open with pipe) and afoken's reply. I gave a Linux example there, but the general idea will still apply to Windows.)

  • Comment on Re: Execution of external process does not wait in IIS7/Windows

Replies are listed 'Best First'.
Re^2: Execution of external process does not wait in IIS7/Windows
by lintunen (Novice) on Aug 23, 2010 at 11:13 UTC

    Success! I changed the open statement with the pipe to backticks and the code waited. (I had no luck with system.) Thanks!