[Lazarus] How to enumerate list of Linux running processes?

Frank Church vfclists at gmail.com
Sun Aug 14 16:46:44 CEST 2011


On 13 August 2011 22:11, Frank Church <vfclists at gmail.com> wrote:

> Is there a Lazarus/FPC routine to list the processes running on a Linux
> system, the equivalent of EnumProcesses + GetCommandLineEx(Pids[x]) on
> Windows?
>
> --
>

I have checked it and assumed that those in which cat /proc/XXXX/cmdline
returns a string are the active process?

Is that right? Some of them return a blank - are they terminated, expired or
something?



> Frank Church
>
> =======================
> http://devblog.brahmancreations.com
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110814/577aaeba/attachment-0003.html>


More information about the Lazarus mailing list