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

2011-08-13 Thread Frank Church
Is there a Lazarus/FPC routine to list the processes running on a Linux system, the equivalent of EnumProcesses + GetCommandLineEx(Pids[x]) on Windows? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing l

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

2011-08-14 Thread Sven Barth
On 13.08.2011 23:11, Frank Church 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? There is no cross platform way for that so you either need to list the files in "/proc" (those direct

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

2011-08-14 Thread Frank Church
On 13 August 2011 22:11, Frank Church 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//cmdline returns a s