| Author |
Message |
|
|
Post subject: how to find the pid of a process by name..
Posted: Mar 13, 2008 - 06:30 PM
|
|
Active Member
Joined: Nov 14, 2006
Posts: 31
|
|
| is there a function that can find the process's id by giving its name? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 14, 2008 - 06:54 PM
|
|
Active Member
Joined: Nov 05, 2003
Posts: 56
Location: Texas
|
|
| Not exactly. If the application has done a name_attach() you can use name_open, although this actually gets you a CHANNEL id, not a pid. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 15, 2008 - 12:42 AM
|
|
Senior Member
Joined: Sep 17, 2004
Posts: 172
|
|
| There may be multiple instances of a program of any given name, how would you know that you have the right one? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 15, 2008 - 02:25 PM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2667
|
|
| You can loop through the entries under /proc. |
|
|
| |
|
|
|
 |
|
|
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group Credits |
|
|