🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11931

Re: finding my login tty

#11931
From: Ray E Saddler III
Date: Tue, 04 Apr 1989 23:27
19 lines
1217 bytes
cstw01!meulenbr@uunet.uu.net (Frans Meulenbroeks) writes:
> Is there a way to detect your login tty?  

Yes.  Run /usr/bin/tty:

ss2060 ray> tty
/dev/ttyp4
ss2060 ray>

Too easy, eh?

-- 
Ray E. Saddler III       |    __  __ __       __ |          UseNet
Boeing Aerospace         |   / / / //   //| //   | uw-beaver!ssc-vax!ray3rd
P.O. Box 3999 m.s. 3R-05 |  /-< / //-  // |// _  |         PhoneNet
Seattle, Wa.  98124  USA | /__//_//__ //  //__/  |      1+206-657-2824

[[ That tells you what tty your current window is using.  But that doesn't
necessarily tell you what tty you originally logged in on.  --wnl ]]
Technical Details
Message-ID: <2550@ssc-vax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!rice!sun-spots-request
References: <349@cstw01.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!rice!sun-spots-request
From: ssc-vax!ray3rd@beaver.cs.washington.edu (Ray E Saddler III)
Newsgroups: comp.sys.sun
Subject: Re: finding my login tty
Keywords: SunOS
Message-ID: <2550@ssc-vax.UUCP>
Date: 4 Apr 89 23:27:45 GMT
References: <349@cstw01.UUCP>
Sender: usenet@rice.edu
Organization: Boeing Aerospace Corp., Seattle WA
Lines: 19
Approved: Sun-Spots@rice.edu
Original-Date: 24 Mar 89 18:38:43 GMT
X-Sun-Spots-Digest: Volume 7, Issue 225, message 7 of 11