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

2011-06-09 Thread Mattias Gaertner
On Wed, 8 Jun 2011 12:58:55 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: > In our previous episode, Mattias Gaertner said: > > > 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}'"

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

2011-06-08 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > > 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

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

2011-06-07 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > > '{print $8}'". > > Thanks, I knew that. > I prefer a more direct way - for example via a sysctl. Not yet, but I'll have a look. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

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

2011-06-07 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > I need to check under BSD if a PID is running and what name it has. > Is there already a function for that? No. Note that /proc can be turned off on BSD, and often is so on servers, so relying on is not that safe anyway. ___

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

2011-06-06 Thread Mattias Gaertner
On Mon, 6 Jun 2011 22:02:39 +0100 (BST) phoebus phoebus 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

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

2011-06-06 Thread phoebus phoebus
f the way i'll do it. I don't think there are some major difference between FPC implementation on Linux and BSD. Regards, Phoebus - Message d'origine De : Mattias Gaertner À : FPC-Pascal users discussions Envoyé le : Lun 6 juin 2011, 21h 50min 06s Objet : [fpc-pascal] ch

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

2011-06-06 Thread Mattias Gaertner
Hi all, I need to check under BSD if a PID is running and what name it has. Is there already a function for that? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal