View topic - PId from a process name
PId from a process name
5 posts
• Page 1 of 1
RE: PId from a process name
Approximately
- maschoen
- QNX Master
- Posts: 2730
- Joined: Wed Jun 25, 2003 5:18 pm
Re: PId from a process name
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:
--
cburgess@qnx.com
/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
- Colin Burgess
Re: PId from a process name
I have the process names, I need PID
"Colin Burgess" <cburgess@qnx.com> wrote in message
news:fho7ht$rap$1@inn.qnx.com...
"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
- sabtain
Re: PId from a process name
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:
--
cburgess@qnx.com
it matches the name you already have. That is what slay and pidin do.
sabtain wrote:
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
--
cburgess@qnx.com
- Colin Burgess
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest