[Qt-interest] Is there anyways to check if a Process is Alive ?

Sean Harmer sean.harmer at maps-technology.com
Fri Mar 26 11:20:56 CET 2010


Hi,

On Friday 26 March 2010 09:02:18 Aaron Lewis wrote:
> More Specific for my problem:
> 
>     I want to search for Process by name on UNIX , kind like a daemon
> process (e.g sendmail)

The quick and easy solution is to use QProcess to call a system tool such as 
ps and parse the output yourself to extract the information that you need.

Longer option is to look at the code of ps and see what it does.

Google may reveal other methods...

Sean



More information about the Qt-interest-old mailing list