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

Recommended Answers

All 4 Replies

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.

Thanx for your reply.
But I'm using Windows NT/2000 server.

Amit

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

Thanx a lot to all of you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.