in reply to system() does not wait for terminal.exe to complete executing on Windows
Unnecessary
Unwanted
Then, if you can, please show us some relationship between the code you've posted and the problem you assert. Lacking a box with XP running, I'm also more than a bit confused about:
Modified to use strict and warnings and to run under Linux, the script does exactly what one might expect after reading the documentation for system. Modified by substituting another (available) executable for terminal.exe the script (under w2k) also behaves as expected... and not as described.
So you might want to insert a little test right after your wait();: print "\n\t Past the wait; first execution of terminal.exe is complete\n\n"And see what happens.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system() does not wait for terminal.exe to complete executing on Windows
by spranav (Initiate) on Apr 07, 2010 at 20:05 UTC |