regarding qnx_name_locate

If I want to find the pid of certain process like phrelay, inetd, should I
use qnx_name_locate()?
I tried it, with qnx_name_locate(0, “bin/phrelay”, 0, NULL); it doesnt seem
to work. pl help

sin from the shell reported as //1/*/bin/phrelay,

“ran zhang” <rzhang@vamcointernational.com> wrote in message
news:a77cen$jd5$1@inn.qnx.com

If I want to find the pid of certain process like phrelay, inetd, should I
use qnx_name_locate()?

This is a QNX4 question, post question in related newsgroup.
When the newsgroup has the work qnxrtp in it that’s for QNX6.
Furthere more I don’t see what this question has to do with Photon.

If you want help please help us!

I tried it, with qnx_name_locate(0, “bin/phrelay”, 0, NULL); it doesnt
seem
to work. pl help



sin from the shell reported as //1/*/bin/phrelay,

ran zhang <rzhang@vamcointernational.com> wrote:

Note: this is a QNX4 question, it would better belong in the
qdn.public.qnx4 conference.

If I want to find the pid of certain process like phrelay, inetd, should I
use qnx_name_locate()?
I tried it, with qnx_name_locate(0, “bin/phrelay”, 0, NULL); it doesnt seem
to work. pl help

qnx_name_locate() will only find names that have been attached by
qnx_name_attach(). “sin na” will list the local names, and “sin gn”
will list global names.

sin from the shell reported as //1/*/bin/phrelay,

To find a process according to command name, you have to do what
sin (or slay) do, and use qnx_psinfo() to walk the process table.


-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.