[Migrated content. Thread originally posted on 22 May 2008]
Has anyone run this command from a thin client session in order to parse the results to display in a window on the client to see who is connected via thin client from any workstation?Here is what I'm doing. It does create the file, but it's empty and it seems to take a very long time. the command works properly (albeit a bit different looking) when run on a unix server. But when running windows 2000 server it doesn't... As you can see I have tried the full path to the .exe, I have tried just about everything and no go. Any ideas would be helpful.
MOVE SPACES TO WS-COMMAND.
STRING "C:\\Acucorp\\Acucbl610\\AcuGT\\bin\\acurcl ",
"-info 2> .\\files\\thinclients.log"
DELIMITED BY SIZE INTO WS-COMMAND
END-STRING.
MOVE ZEROS TO WS-CTR.
INSPECT WS-COMMAND TALLYING WS-CTR FOR TRAILING SPACES.
COMPUTE WS-CTR = FUNCTION LENGTH(WS-COMMAND) - WS-CTR.
IF TERM-IS-REMOTE
CALL "C$SYSTEM" USING WS-COMMAND(1:WS-CTR), 96
GIVING EXIT-STATUS
CANCEL "C$SYSTEM"
ELSE
CALL "C$SYSTEM" USING WS-COMMAND(1:WS-CTR)
GIVING EXIT-STATUS
CANCEL "C$SYSTEM"
END-IF.
IF EXIT-STATUS = 0
| open notpad and view the file
END-IF.


