Post subject: Re: PId from a process name Posted: Nov 19, 2007 - 06:30 PM
Guest
Unfortunately you have to go through every pid, fetch it's name, and check to see if
it matches the name you already have. That is what slay and pidin do.
sabtain wrote:
Quote:
I have the process names, I need PID
"Colin Burgess" <cburgess@qnx.com> wrote in message
news:fho7ht$rap$1@inn.qnx.com...
Take a look at the source to slay or pidin. Basically you will have to
traverse
/proc/[0-9]*/as with readdir and then issue a DCMD_PROC_MAPDEBUG_BASE
devctl on each
to fetch out the name.
sabtain wrote:
Is it possible to find out the pid of a process using process name?
--
cburgess@qnx.com
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters. Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.