Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!rutgers!dptg!att!tellab5!rtm From: rtm@tellab5.tellabs.CHI.IL.US (Roberto Michelassi) Newsgroups: comp.unix.questions Subject: How can a login script determine if the session is remotely logged in? Summary: rlogin detection. Keywords: rlogin, script Message-ID: <1448@tellab5.tellabs.CHI.IL.US> Date: 21 Jul 89 13:19:39 GMT Reply-To: rtm@tellab5.UUCP (Roberto Michelassi) Followup-To: comp.unix.questions Distribution: usa Organization: Tellabs, Inc., Lisle, IL Lines: 9 References: I am currently a ksh user running on a Sun 3/60 with SunOS 4.0 and would like to add a feature to my .profile or .kshrc file that would update the tool header of the window to display the message "RLOGIN" when I remotely log into another machine. I know how to send the appropriate escape sequences to the window to update the tool header, what I don't know is how to determine when a script is being executed in a remotely logged in session. I would greatly appreciate any suggestions you might have.