finding my login tty
Ray E Saddler III
ssc-vax!ray3rd at beaver.cs.washington.edu
Wed Apr 5 09:27:45 AEST 1989
cstw01!meulenbr at 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 ]]
More information about the Comp.sys.sun
mailing list