Hi,
I responded to this same question that you posted via the STAF Help 
Discussion forum at 
https://sourceforge.net/p/staf/discussion/104046/thread/ecb6b594/

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Shambhu Sharma <shambhu.1...@gmail.com>
To:     staf-users@lists.sourceforge.net
Date:   07/11/2017 01:17 AM
Subject:        [staf-users] Not able to run GUI app on remote STAF host



Hi,
I just installed STAF on two Ubuntu 16.04 machines and able to run command 
using "staf <remotehost> <service> <request>". But when I try to run gui 
application on remote host, it is throwing DISPLAY error. I am accessing 
both Linux machines through Putty (from windows client) with X11 
forwarding enabled and also I have installed xming. Note that, if I run: $ 
staf local process start shell command "xclock" wait stderrtostdout 
returnstdout , it is working fine. But if i use:
$ staf remotehost process start shell command "xclock" wait stderrtostdout 
returnstdout
I am getting below error:

Response
---------------------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data : Error: Can't open display: localhost:10.0
}

]
}
Interestingly, If I have putty session running for remotehost, then clock 
gui starts fine. So it seems that through STAF, X11 forwarding is not 
getting enabled. Please let me know how to enable it in STAF 
configuration.
Regards,
Shambhu.
-- 
If linux doesn't have a solution, then u have a wrong problem.

Shambhu Kumar Sharma
91-98807 52962
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to