SUMMARY: UPDATE:How do I get Client Name?

From: Neta Hedberg <neta.hedberg_at_sigit.se>
Date: Wed, 02 Feb 2000 09:43:43 +0100

Dear Managers,

I'm sorry for not posting my summary earlier, but things have been very
busy here the last couple of days.

I got a lot of responses and different solutions to my problem. Many of
which did not work for me.

However Chad Price and John Losey came up with the solution:

setenv DISPLAY `who -Mm |grep $USER |awk '{print $6}'|tr -d '[()]'`:0.0

This works just fine, Thank you very much :)

Many thanks also to the following people for their suggestions:

Bevan Broun
Per Boussard
Peter Mittermayer
Peter Stern
Gwen Pettigrew
Richard Westlake
Phil Vitale
Alex Gorbachev
Frank Wortner
Mary Freesmeyer
Robert R. Sloane
A. Mahendra Rajah

/Neta Hedberg




Hello again

I guess I didn't make myself clear enough when sending the question below.
I want to use the client name in the login script, i.e. I want to set the
DISPLAY variable in .cshrc and instead of writing:

setenv DISPLAY name:0

I want to write something like this:

setenv CLIENT `get client name`
setenv DISPLAY $CLIENT":0"

Do you know if this is possible? And how do I get the Client Address?

Thanks again and sorry for being unprecise.

Kind regards Neta Hedberg



Hello everyone

I'm not really sure if this is a Unix question or a Samba quetion.

We run DU4.0E on a Digital Alpha 2100. The clients run WinNT or Win95
and they logon to the server via Samba. In order to connect to the Unix
host we use a PC X server called "KEAX" on the clients.

My question is: How do I get the name of the client I am sitting on?
In other words: Which command will return the name of the computer I am
working on?

Thanks in advance

Kind regards Neta Hedberg
Received on Wed Feb 02 2000 - 08:44:26 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT