tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Guy Dallaire <dallaire () total ! net>
To: tru64-unix-managers
Subject: SUMM: How to determine if a user logged via XDM or not
Date: Wed, 04 Dec 1996 16:08:37 +0000	[thread overview]
Message-ID: <96076343421430.tru64-unix-managers.marc@archive.invalid> (raw)

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"

                 reply	other threads:[~1996-12-04 16:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox