How to get login shell pid's

Dave Bloom dave at andromeda.UUCP
Fri Sep 27 01:46:22 AEST 1985


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...."



More information about the Comp.unix mailing list