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
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}'". I 'm assuming the output is: user12793 2789 0 22:52 pts/000:00:00 bash and encapsulate the command is one of the following system ca