[fpc-pascal] check if process ID is running under BSD

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jun 7 08:10:23 CEST 2011

On Mon, 6 Jun 2011 22:02:39 +0100 (BST)
phoebus phoebus <frphoebus at yahoo.fr> wrote:

> Hi Mattias,
> I don't know if it exist a FPC function for that.
> i'll do an external commad like " ps -ef | grep bash | grep -v grep | awk 
> '{print $8}'".

Thanks, I knew that.
I prefer a more direct way - for example via a sysctl.

I need to check under BSD if a PID is running and what name it has.
Is there already a function for that?


More information about the fpc-pascal mailing list