[Lazarus] Process ID
laz at vgdata.dk
Thu Sep 13 07:36:59 CEST 2012
If I understand your question correct, you are asking for a lazarus
I don't think that exists.
But you can use the TProcess to execute a linux command and grab the output.
Pidof will give you the processed of a specific program.
Ps is much more multipurpose, and it does *not* requires you to be root.
At leat not in RedHat/Centos
You can use the following command to find all processes for a specific user
(using kmi as an example):
ps aux | grep -w ^kmi
From: ik [mailto:idokan at gmail.com]
Sent: 12. september 2012 19:37
To: Lazarus mailing list
Subject: Re: [Lazarus] Process ID
On Wed, Sep 12, 2012 at 7:22 PM, Ian Godman <ian at gravytrain.co.uk> wrote:
> You can use the ps command to list process status. Many option so try
> man ps or info ps for further information.
> To get process info for other users you need root privilege, sudo ps
> should do that.
"pidof" is much more effective for it.
> Also top will tell you the running processes and how much memory / cpu
> each is using. Use q to exit.
> On 12/09/12 15:59, Antonio Fortuny wrote:
>> Hi list.
>> Which function to use in Linux (if any) to get the process ID of a
>> running process which is not mine. GetProcessID retrieves my own
>> process ID.
>> I'm using OpenProcess in Win
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
More information about the Lazarus