Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site andromeda.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!columbia!topaz!andromeda!dave From: dave@andromeda.UUCP (Dave Bloom) Newsgroups: net.unix Subject: How to get login shell pid's Message-ID: <4@andromeda.UUCP> Date: Thu, 26-Sep-85 11:46:22 EDT Article-I.D.: andromed.4 Posted: Thu Sep 26 11:46:22 1985 Date-Received: Sat, 28-Sep-85 08:17:50 EDT Organization: Rutgers University, Newark, N.J. Lines: 17 Here's the story: I'm writing my own version of "idledaemon" but I'd like a few suggestions from the net. Namely, what's the best way to get the pid of a users login shell? The SystemV command 'who -u' supplies the number, but I can't find anything in the 4.2 BSD universe that does the same. Any suggestions? Any idea how AT&T does it in 'who', and can it be done similarly in 4.2 BSD? Thanx. -- ------------------------------------------------------------------------------- allegra\ Dave Bloom harvard \ pyramid\ seismo \ pyrnj >!andromeda!dave HOME: (201) 868-1764 ut-sally >!topaz/ WORK: (201) 648-5083 sri-iu / ihnp4!packard / "You're never alone with a schizophrenic...." Brought to you by Super Global Mega Corp .com