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

Determine if one program is running from another program

Former Member
0 Likes
437

Hi,

I have two programs say prog1 and prog2 and the requirement is if prog1 is running under any process, I have to restrict prog2 from execution using some error message.

I will have to add a check in prog2 to determine if there is any session of prog1 is running somewhere.

Does any table hold runtime data, whichever programs are currently running?

Any other way to achieve this? I thought of locking concept but it won't help as if i put lock in prog1, any other user will not be able to run it again till execution is over.

Please guide me.

Let me know if I am not clear in explaining my problem.

(There is no dependency between these two programs and are completely seperate execuatble programs. Program is NOT called from another program)

Thanks,

Agasti.

Edited by: Agasti Kale on Feb 25, 2008 7:08 PM

2 REPLIES 2
Read only

Former Member
0 Likes
400

You can try to use the result of FM SYSTEM_CALLSTACK...

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 25, 2008 1:51 PM

Read only

Former Member
0 Likes
400

Requirement was taken care in some other way.