On Tue, 8 Jul 2003 [EMAIL PROTECTED] wrote:

> Hello,
> 
> is it possible to find out the hostname of the LTSP client within
> a X Terminal session?

Yes, it should be the first part of the DISPLAY environment variable.
For example, if I do this:

    echo $DISPLAY

I get this:

    ws001:0.0

So, some fancy trickery with awk, and you can isolate just
the hostname out of it.  Like this:

    HOST=`echo $DISPLAY | awk -F: '{ print $1 }'`

That should give you what you are looking for.

Jim McQuillan
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to