Link to home
Start Free TrialLog in
Avatar of adimallee
adimallee

asked on

getProcessid( one program from another program);

hi,

My doubt is as follows.
Let us suppose a program(prgm 1) is executing in an infinite while loop. Now from another program (prgm 2) we should get the process id of prgm 1 which is already executing.
Avatar of Paul Maker
Paul Maker
Flag of United Kingdom of Great Britain and Northern Ireland image

you would need to enumerate all running processes and look at the module filename to determine which is the process you are interested in. you do have a problem if more than once instance is running...

what platform are you on?
Avatar of modulo
modulo

Dear expert(s),

A request has been made to close this Q in CS:
https://www.experts-exchange.com/questions/20442410/Clean-up-the-questions.html

Without a response in 72 hrs, a moderator will finalize this question by:

 - Saving this Q as a PAQ and refunding the points to the questionner

When you agree or disagree, please add a comment here.

Thank you.

modulo

Community Support Moderator
Experts Exchange
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial