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
[EMAIL PROTECTED]


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

Reply via email to