I think that the main problem is that the pid is referred to te forst task of the application. It happens that an application spawns othert tasks, but do not wait for thei termination, so your check is not guaranteed to be correct for all applications
bye giammy On Jan 1, 2008 7:05 PM, Ross Smith II <[EMAIL PROTECTED]> wrote: > http://unattended.sourceforge.net/installers.php > > says > > "AutoIt provides Run and RunWait primitives, but it does not provide a > way to wait for the termination of an application which was invoked by > Run. If it did, this race condition could be avoided." > > That isn't true. I've used the following successfully: > > $pid = Run($cmd) > > While ProcessExists($pid) > ; wait for process to end > Wend > > Best, > > -Ross > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > unattended-info mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/unattended-info > -- Gianluca Moro www.giammy.com [EMAIL PROTECTED] http://groups.google.it/group/riflessioni ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ unattended-info mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-info
