public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Extraction of PID
@ 2003-07-26  6:58 Peter
  2003-07-26  8:11 ` John Kelly
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Peter @ 2003-07-26  6:58 UTC (permalink / raw)
  To: linux

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-27  5:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-26  6:58 Extraction of PID Peter
2003-07-26  8:11 ` John Kelly
2003-07-26  8:22 ` pa3gcu
2003-07-27  5:36   ` Peter
2003-07-26 10:57 ` chuck gelm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox