In a shell script (Bourne and/or C), how would one determined if they
logged into a workstation remotely (via telnet, rlogin, rsh, ...) or
through the console via XDM? I'd prefer to implement this login in a
user's startup script (such as .cshrc or .profile).
I noticed that when logging in through the console via XDM, using `tty
-l` will only give you the name of a pseudo-terminal. The same goes for
a remote login.
Any help would be very much appreciated! --john
John J. Sasso, Jr Systems
Rensselaer Polytechnic Institute Lockheed-Martin (KAPL Division)
Engineering Physics Dept., Masters Schenectady, NY