Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: cstw01!meulenbr@uunet.uu.net (Frans Meulenbroeks) Newsgroups: comp.sys.sun Subject: finding my login tty Keywords: SunOS Message-ID: <349@cstw01.UUCP> Date: 22 Mar 89 21:35:55 GMT Sender: usenet@rice.edu Organization: Centre for Software Technology, Philips Eindhoven Lines: 16 Approved: Sun-Spots@rice.edu Original-Date: 10 Mar 89 11:07:08 GMT X-Sun-Spots-Digest: Volume 7, Issue 204, message 11 of 13 Hi! Is there a way to detect your login tty? ttyname(3) only gives me the name of the pty of the current window or rlogin session. I know that I can find it through wtmp, but this is not acceptable since then there might be a lot of I/O involved which would slow down the application too much. Also one can never be sure that a wtmp file exists. Anyone any idea?? Thanks in advance! -- Frans Meulenbroeks (meulenbr@cst.prl.philips.nl) Centre for Software Technology ( or try: ...!mcvax!philmds!prle!cst!meulenbr)