Re: Extraction of PID

pa3gcu
2003-07-26T08:22:32Z

On Saturday 26 July 2003 08:58, Peter wrote:
> Hi,
>
> How do I isolate from a line like
>
> 1865 tty2 00:00:18 exmh
>
> the first 4 numbers which is the PID. I get it with "ps -a --pid 1111 |
> grep exmh".

If your system has "pidof" installed; then

'pidof exmh'

> Thanks & regards

--
If the Linux community is a bunch of theives because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
pa3gcu@zeelandnet.nl