Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Check if a program is running in presentation server

manuelhildemaro_ramossanc
Active Participant
0 Likes
941

Hi.

I need to check if a program  is running in presentation server ( with Windows OS), somebody knows a way to do this ?

I tried with  CL_GUI_FRONTEND_SERVICES and CL_GUI_OBJECT without good results.

Best regards,

Manuel H.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
886

You could use CL_GUI_FRONTEND_SERVICES to EXECUTE a command like 'tasklist /FI "IMAGENAME eq xxxxxx.exe" /FO CSV > c:\temp\search.log' and then UPLOAD the resulting file to check for 'xxxxxx.exe' string. (But better post in a microsoft forum for exact syntax )

Regards,

Raymond

Hi.

I need to check if a program  is running in presentation server ( with Windows OS), somebody knows a way to do this ?

I tried with  CL_GUI_FRONTEND_SERVICES and CL_GUI_OBJECT without good results.

Best regards,

Manuel H.

5 REPLIES 5
Read only

Former Member
0 Likes
886

Programs run on application servers. In order to see what programs are running, you may want to look into the report RSMON000_ALV.

Read only

0 Likes
886

Hi Samuli.

I need to check programs running in the presentation server, not in app server.

Regards,

Manuel H.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
887

You could use CL_GUI_FRONTEND_SERVICES to EXECUTE a command like 'tasklist /FI "IMAGENAME eq xxxxxx.exe" /FO CSV > c:\temp\search.log' and then UPLOAD the resulting file to check for 'xxxxxx.exe' string. (But better post in a microsoft forum for exact syntax )

Regards,

Raymond

Read only

0 Likes
886

Hi Raymond.

It works. Thanks very much. However, do you know a way that not use file text ?

Best regards,

Manuel H.

Read only

0 Likes
886

No, as even a script as below should be first downloaded to PC, so exchange an upload for a download...

tasklist /FI "IMAGENAME eq XXXXXX.exe" /FO CSV > c:\temp\search.log

FOR /F %%A IN (c:\temp\search.log) DO IF %%~zA EQU 0 GOTO end

start XXXXXX.exe

:end

del c:\temp\search.log

Better ask on a microsoft forum...

Regards,

Raymond