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
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to