🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11632

finding my login tty

#11632
From: Frans Meulenbroeks
Date: Wed, 22 Mar 1989 21:35
16 lines
1059 bytes
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)
Technical Details
Message-ID: <349@cstw01.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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