Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!crdgw1!sungod!davidsen From: davidsen@sungod.crd.ge.com (ody) Newsgroups: comp.unix.questions Subject: Re: Parent process ID Message-ID: <1635@crdgw1.crd.ge.com> Date: 11 Aug 89 16:11:41 GMT References: <12046@orstcs.CS.ORST.EDU> Sender: news@crdgw1.crd.ge.com Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric Corp. R&D, Schenectady, NY Lines: 10 In article <12046@orstcs.CS.ORST.EDU> ghe@nucthy.physics.orst.edu (Guangliang He) writes: | We know the shell variable $$ means the process ID of current process. | Is there a variable to represent the Parent Process ID (PPID)? Any hint | will be welcome. Korn shell uses $PPID. You could trivially set your .profile to define such a veriable if you run another shell. bill davidsen (davidsen@crdos1.crd.GE.COM) {uunet | philabs}!crdgw1!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me