From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076343421430.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Wed, 04 Dec 1996 16:08:37 +0000 To: tru64-unix-managers Subject: SUMM: How to determine if a user logged via XDM or not X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076343421430 Thanks to all those who replied. My original question follows: Is there a way to determine if a user logged from an X terminal (xdm) in its .profile ? I have to run some commands from their .profile ONLY if they are not logging via X-Windows. Sorry if my question was not very clear, I'm french speaking and sometimes the words just don't get out as they should. I just wanted to be able to determine, from the .profile, if a user was connecting via x-windows or not. Thanks ! The easiest solution: Check for the presence of the $DISPLAY environment variable. If it's set, then the user is using X, otherwise, it's a serial or telnet connection. Guy Dallaire dallaire@total.net "God only knows if god exists"