
Determing if a process is running
Quote:
>How can you tell if a certain process is running? I have a particualr
>program that cannot run unless specific program is running. How would I
>be able to determine if it is running so I can display an error if the
>other program is not running?
Have the other program create or lock some resource that you can test for,
make it respond to some sort of IPC, or search for it in the list of
running processes. The C language doesn't provide any way of doing any
of these thing (at least not portably and reliably), you'll need to
use some sort of platform extension. If you are talking about a Unix
environment this is best asked in comp.unix.programmer.
--
-----------------------------------------
-----------------------------------------