I tried, this didn't work.  I guess this works only for unix systems.

Sorry, I forgot to mention that I'm working on Windows.

Sam








"Mark" <[EMAIL PROTECTED]>

Sent by:
[EMAIL PROTECTED]

04/15/2005 03:32 PM

       
        To:        <[email protected]>
        cc:        (bcc: Sam Dela Cruz/SVL/SC/PHILIPS)
        Subject:        RE: find when a process would terminate

        Classification:        




Just fork(), and waitpid.
 
- Mark
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Dela Cruz
Sent:
vrijdag 15 april 2005 23:44
To:
[email protected]
Subject:
find when a process would terminate



Hi all,


I just need to find out when a process would terminate before I continue with my program.


Here's the situation.   When I start my program, it looks to see if a certain process is running.  If it is, then I would like my program to wait till that process is terminated before continuing.  Had anyone of you done this before?


I'm thinking of getting the process id then monitor if the process id no longer exists by polling the process list again and again.  But I'm thinking that this may not be the proper way of doing it.  Is there a way to monitor if a process is terminating based on just he process id?


Sam  
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to