Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: Process ID of a "Stranger" Keywords: PID, ps , getpid(2) Message-ID: <13709@smoke.BRL.MIL> Date: 30 Aug 90 20:51:46 GMT References: <266@jabberwock.shs.ohio-state.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article <266@jabberwock.shs.ohio-state.edu> reiner@jabberwock.shs.ohio-state.edu (Reiner Wilhelms) writes: -It is rather easy to obtain the process Id of a process via the system -call getpid(), and of the parent process via getppid(). -However, how can I obtain the process id of a "stranger": some other -process, running on the same machine, if I just know its name? Processes do not HAVE names, just PIDs. I don't know what problem you're trying to solve, but you're going about it the wrong way.