Re: Extraction of PID

chuck gelm
2003-07-26T10:57:48Z

ps -a --pid 1111 | grep exmh | cut -b 2-5

HTH, Chuck

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".
^
?

>
> Thanks & regards
> --
> Peter