Hello friends,

I'm trying to write a program to check the status of a process (specified by its process-id), ie, the process is presently running or not.
Can you pls give me some idea to solve it?
Thanks in advance.

Amit

what operating system? on *nix just open a pipe to the ps program than parse its output. There are probably other ways to accomplish it too.

Hello friends,

I'm trying to write a program to check the status of a process (specified by its process-id), ie, the process is presently running or not.
Can you pls give me some idea to solve it?
Thanks in advance.

Amit

Hello amt,

I'm not sure if you're using *nix or MS Windows or etc, but I'll just assume you're using Windows. The Microsoft website, http://microsoft.com, has mucho information and documentation, it even has tutorials for the development of and with Windows. Here is a link to the process section that might accommodate your specific needs: http://msdn2.microsoft.com/en-us/library/ms684841.aspx

Good luck, LamaBot

This question has already been answered. Start a new discussion instead.