Starting a process on another node

What I want is to start a (photon) process on another node - i.e. have
the process actually running on the other node.
Lets say that I have a two node system, node 1 is used to start an app
which I would like to run on node 2.
If I use the qnx_spawn function to start the app on node 2, and pass the
-s2 argument to the photon app, the app appears on node 2, but the
process appear on the node 1 sin output. If I then shutdown node 1, the
app will terminate. Maybe I need to do something with the Session, but
I am not sure.

Any help would be appreciated.

Thanks,
Ian Todd.

NDT Technologies Inc. <info@ndt.ca> wrote:

What I want is to start a (photon) process on another node - i.e. have
the process actually running on the other node.
Lets say that I have a two node system, node 1 is used to start an app
which I would like to run on node 2.
If I use the qnx_spawn function to start the app on node 2, and pass the
-s2 argument to the photon app, the app appears on node 2, but the
process appear on the node 1 sin output. If I then shutdown node 1, the
app will terminate. Maybe I need to do something with the Session, but
I am not sure.

In calling qnx_spawn(), what do you pass for the 3rd argument, nid_t node?
If you want the process to run on node 2, you must put 2 in there.

Possibly simpler, if a bit more expensive, would be something like:

system(“on -f 2 program”);

-David

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