[prev in list] [next in list] [prev in thread] [next in thread]
List: ltsp-discuss
Subject: Re: [Ltsp-discuss] Determine Work Station Host Name
From: Jim McQuillan <jam () McQuil ! Com>
Date: 2001-12-28 20:47:26
[Download RAW message or body]
Serge,
The DISPLAY environment variable will tell you the workstation name.
If you do echo $DISPLAY
you will see something like "ws001:0.0" you can extract the
hostname from that using awk or cut or a handfull of other
utilities.
Take a look at the LTSP 3.0 documentation for starting
local apps, it shows an example of getting the hostname.
Hope that helps,
Jim McQuillan
jam@ltsp.org
Serge B Bromow wrote:
> LTSP Rocks,
>
> That being said, My application running on the server needs to
> know which workstation it is being run from so that I can
> configure certain features that are work station specific.
>
> Is there a call/routine/program/scheme that I can call to determine
> which station the application was started from?
>
> Any help appreciated.
>
>
>
>
> _____________________________________________________________________
> 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.openprojects.net
>
_____________________________________________________________________
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.openprojects.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic