Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!cs.utexas.edu!uunet!mcvax!hp4nl!eutrc3!wzv!wietse From: wietse@wzv.win.tue.nl (Wietse Z. Venema) Newsgroups: comp.unix.wizards Subject: Re: pid from process name Keywords: pid Message-ID: <320@wzv.win.tue.nl> Date: 15 Jul 89 22:09:09 GMT References: <11723@drutx.ATT.COM> Distribution: comp Organization: Eindhoven University of Technology, The Netherlands Lines: 7 blum@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") ... :-)