Hi there,
I'm trying to find a way of testing whether my process is already running when I try to spin it up. If it is already running, I then need to kill it. The problem is that the application is going to be deployed on both Windows XP and RHEL/CentOS 5 boxes.
I have been able to track down OS-specific ways of testing to see if a named process is running, but is there any way to do it independent of operating system?
We have been making heavy use of the ACE libraries, which allows us to perform a lot of operations which would usually be os-specific in a portable way, but I can't seem to fund a way of getting the process list.
Any ideas?
Thanks,
Rik