trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] Finding a running process

From: Darrell Anderson <humanreadable@...>
Date: Thu, 1 Mar 2012 21:39:02 -0800 (PST)
> > What is an appropriate way in TDE/Qt to query the
> > process list to determine whether an app is running?

> From the command line the ps command,
> with the correct arguments, pipped to grep with name of the process as greps argument
> should work for any version of Linux.
> 
> If you want to use the trinity GUI then ksysguard, using the
> "Process Table" tab and putting the process name in the search bar
> will show you nothing if it is not running and lots of info if it is.

No, no, in TDE/(T)Qt3 --- not the command line. :)

That is, the appropriate C++ method for determing whether an app is running.

Darrell