Configured STAF 3.4.26 on windows server.
C:\Windows\system32>staf local ping ping Response
PONG
C:\Windows\system32>staf local java version Error submitting request, RC: 2 Additional info
java
It fails with RC:2 error . I could get java version response on the cmd prompt. Some issue with STAF configuration.
Looked into the error code and couldn't figure out resolution for this issue .
Any help for resolutions will be appreciated.
you have to use the process service to run commands. Try this
staf local process start shell command java version wait returnstdout stderrtostdout
if that doesn't work, try staf local process start shell command java parms version wait returnstdout stderrtostdout
http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV
Thanks, Nixon
Log in to post a comment.
Configured STAF 3.4.26 on windows server.
C:\Windows\system32>staf local ping ping
Response
PONG
C:\Windows\system32>staf local java version
Error submitting request, RC: 2
Additional info
java
It fails with RC:2 error . I could get java version response on the cmd prompt.
Some issue with STAF configuration.
Looked into the error code and couldn't figure out resolution for this issue .
Any help for resolutions will be appreciated.
Last edit: Alok Singh 2022-06-13
you have to use the process service to run commands. Try this
staf local process start shell command java version wait returnstdout stderrtostdout
if that doesn't work, try
staf local process start shell command java parms version wait returnstdout stderrtostdout
http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV
Thanks,
Nixon