multi node problem

I am looking for an equivalent of the following command executed on node1:
on -n node2 -f node2 command
using a spawn function. The -f flag put the root on node2.
I am using the example from netmgr_ndtostr as a command for testing.
It seems when command is spawned from node1 on node2 the equivalent
commandline command is:
on -n node2 command
My goal is setting up a client/server combination where the server is
running on node1 and the client is started by the server on node2.
Is there a possibility or do I have to use netmgr_remote_nd to obtain the
node descriptor of node1 on node2 ?

Thanks
Pim

So far as I can remember, there is not one word in the Gospels in
praise of intelligence.
– Bertrand Russell

I think that all you need to do is chroot("/net/node2/");

Pim Bollen wrote:

I am looking for an equivalent of the following command executed on node1:
on -n node2 -f node2 command
using a spawn function. The -f flag put the root on node2.
I am using the example from netmgr_ndtostr as a command for testing.
It seems when command is spawned from node1 on node2 the equivalent
commandline command is:
on -n node2 command
My goal is setting up a client/server combination where the server is
running on node1 and the client is started by the server on node2.
Is there a possibility or do I have to use netmgr_remote_nd to obtain the
node descriptor of node1 on node2 ?

Thanks
Pim


cburgess@qnx.com

This is what I need!
Thanks.

Colin Burgess wrote:

I think that all you need to do is chroot("/net/node2/");

Pim Bollen wrote:
I am looking for an equivalent of the following command executed on
node1: on -n node2 -f node2 command
using a spawn function. The -f flag put the root on node2.
I am using the example from netmgr_ndtostr as a command for testing.
It seems when command is spawned from node1 on node2 the equivalent
commandline command is:
on -n node2 command
My goal is setting up a client/server combination where the server is
running on node1 and the client is started by the server on node2.
Is there a possibility or do I have to use netmgr_remote_nd to obtain the
node descriptor of node1 on node2 ?

Thanks
Pim


Don’t you feel more like you do now than you did when you came in?