pid from process name

Wietse Z. Venema wietse at wzv.win.tue.nl
Sun Jul 16 08:09:09 AEST 1989


blum at drutx.ATT.COM (Mark Blumhardt) writes:

>Given a process name, how can I find its process id?   It just isn't
>obvious to me, other than a system call to grep thru the output of ps,
>which I don't want to do.

open("/dev/kmem","r") ... :-)



More information about the Comp.unix.wizards mailing list