Skip to main content

Getting the operating system from client

Author: hugo.garcia@virtualage.com.br (hugogarcia)

Hello, I'm running the uniface remotely through JTI. I'm on a Linux Ubuntu with JTI accessing the uniface on a Windows server. Is there anyway to get the SO from the client(Linux)? Or get the current OS user name(Linux)? Because I'm using $processinfo and $oprsys but it returns only the information from the server.

Getting the operating system from client

Author: hugo.garcia@virtualage.com.br (hugogarcia)

Hello, I'm running the uniface remotely through JTI. I'm on a Linux Ubuntu with JTI accessing the uniface on a Windows server. Is there anyway to get the SO from the client(Linux)? Or get the current OS user name(Linux)? Because I'm using $processinfo and $oprsys but it returns only the information from the server.

I currently use $setting to get environment variables set by JTi on login, One of these two is set by RDP sessions, the other by JTi (Uniface Anywhere) I can't remember which is which. We use the installed javascript UA Client. 

v_machine = $processinfo("host")
if($setting("","CLIENTCOMPUTERNAME","ENVDATA") != "")
     v_machine = $concat(v_machine,"/",$setting("","CLIENTCOMPUTERNAME","ENVDATA"))
elseif($setting("","CLIENTNAME","ENVDATA") != "")
 v_machine = $concat(v_machine,"/",$setting("","CLIENTNAME","ENVDATA"))
endif



Author: Iain Sharp (i.sharp@pcisystems.co.uk)

Getting the operating system from client

Author: hugo.garcia@virtualage.com.br (hugogarcia)

Hello, I'm running the uniface remotely through JTI. I'm on a Linux Ubuntu with JTI accessing the uniface on a Windows server. Is there anyway to get the SO from the client(Linux)? Or get the current OS user name(Linux)? Because I'm using $processinfo and $oprsys but it returns only the information from the server.

Iain Sharp said I currently use $setting to get environment variables set by JTi on login, One of these two is set by RDP sessions, the other by JTi (Uniface Anywhere) I can't remember which is which. We use the installed javascript UA Client. 
v_machine = $processinfo("host")
if($setting("","CLIENTCOMPUTERNAME","ENVDATA") != "")
     v_machine = $concat(v_machine,"/",$setting("","CLIENTCOMPUTERNAME","ENVDATA"))
elseif($setting("","CLIENTNAME","ENVDATA") != "")
 v_machine = $concat(v_machine,"/",$setting("","CLIENTNAME","ENVDATA"))
endif

  

Thank's a lot. It worked correctly getting the username. Laugh


Author: hugogarcia (hugo.garcia@virtualage.com.br)