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}'"
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
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
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.
___
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
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