Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site mit-vax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!mit-vax!pds From: pds@mit-vax.UUCP (Philip Steen) Newsgroups: net.unix Subject: Re: How to get login shell pid's Message-ID: <895@mit-vax.UUCP> Date: Sat, 28-Sep-85 22:16:06 EDT Article-I.D.: mit-vax.895 Posted: Sat Sep 28 22:16:06 1985 Date-Received: Mon, 30-Sep-85 02:33:28 EDT References: <4@andromeda.UUCP> Reply-To: pds@mit-vax.UUCP (Philip Steen) Organization: MIT, Cambridge, MA Lines: 11 Summary: In article <4@andromeda.UUCP> version B 2.10.2 9/18/84; site mit-vax.UUCP version B 2.10.3 4.3bsd-beta 6/6/85; site andromeda.UUCP mit-vax!mit-eddie!think!harvard!seismo!columbia!topaz!andromeda!dave dave@andromeda.UUCP (Dave Bloom) writes: >... what's the best way to get the pid of a users login shell? >... can it be done similarly in 4.2 BSD? Sure it can. The shell variable $$ gets the pid for you, use it thusly in the C-Shell: set pid=$$ echo "the pid of this shell is $$" One can do something similar in the Bourne Shell. Brought to you by Super Global Mega Corp .com