Jump to ID:
Filesystems

Project Home

Documents

Discussions

Wiki

Project Info
Forum Topic - path of new process: Page 1 of 2 (2 Items)
   
 
 
path of new process  
Hello,

I am trying to get the process id of a process from its name.
I use the linux way of looking into the procfs and looking for the path:
/proc/$pid/ processname..

But I dont see this path at all.. there is only an 'as' and I read the 'Processes' docs in the Momentics IDE but dint 
understand. Tried even looking into the pidin code but got confused.

Can somebody help me.

Bottomline is: I have to write a C code to kill all process instantiated under a name.
I thought of getting the pid of all process under this name using the readlink(path) /proc/pid directory and doing a 
string compare for the process name.

And once I get the pid I do a kill(pid,SIGTERM).

How do I go about it?

By the way where is the process path? The proc directory isnt like the linux procfs....


Thank you