Hello All,
I don’t understand the documentation on how to spawn a process on a remote
node on QNX6. Does anyone have a code snipet to help me out.
Thanks.
Hello All,
I don’t understand the documentation on how to spawn a process on a remote
node on QNX6. Does anyone have a code snipet to help me out.
Thanks.
To spawn /bin/true on the remote node /net/othermachine:
pid_t child;
char *myargs[10];
struct inheritance inherit;
memset(&inherit, 0, sizeof(inherit));
inherit.flags=SPAWN_SETND;
inherit.nd=netmgr_strtond("/net/othermachine", NULL);
assert(inherit.nd!=-1);
myargs[0]="/bin/true";
myargs[1]=NULL;
child=spawnp(myargs[0], 0, NULL, &inherit, myargs, NULL);
Note: the remote process will stil be rooted on the localnode (i.e. the
process will still be using the local filesystem) but will be running
on the remote CPU. To reroot the process take a look at the chroot()
call
-Peter
petep <patelpj@yahoo.com> wrote:
Hello All,
I don’t understand the documentation on how to spawn a process on a remote
node on QNX6. Does anyone have a code snipet to help me out.Thanks.
Thanks for responding. The OS instructor’s purpose for assigning this
project was to demonstrate the network transparency of the QNX OS.
From my research so far, there are 2 ways of doing this,
Point one QNX machine’s Photon space to point
to the other QNX machine, by setting the graphics
parameter to the use not the Phonton server on
the local but the remote. Set it up such that the
display will be set to one of the other virtual Photon
space of the other. e.g. if the remote’s resolution is
800X600 then set the displace of the local to
coordinates 800X0. Once this is setup correctly
when you move a window to the right of the screen
on the remote computer, as it scrolls off the screen
it should appear on the local. Anyway, that was
what I was supposed to demonstrate, but haven’t
yet.
The second method is Jump Gate where you use
this utility to send a running application to another
server. Then the recipient has to send the application
back to you or can forward it elsewhere. Haven’t
done this either.
Anyway, if you deem this as a challenge then you
can figure it out and send me the step by step
instructions. I bet you can’t do it. (Hey, trying to use
some reverse phychology to get my work done.)
Thanks again for responding.
“Peter Graves” <pgraves@qnx.com> wrote in message
news:aam2em$7em$2@nntp.qnx.com…
To spawn /bin/true on the remote node /net/othermachine:
pid_t child;
char *myargs[10];
struct inheritance inherit;
memset(&inherit, 0, sizeof(inherit));
inherit.flags=SPAWN_SETND;
inherit.nd=netmgr_strtond("/net/othermachine", NULL);
assert(inherit.nd!=-1);
myargs[0]="/bin/true";
myargs[1]=NULL;
child=spawnp(myargs[0], 0, NULL, &inherit, myargs, NULL);
Note: the remote process will stil be rooted on the localnode (i.e. the
process will still be using the local filesystem) but will be running
on the remote CPU. To reroot the process take a look at the chroot()
call
-Peterpetep <> patelpj@yahoo.com> > wrote:
Hello All,I don’t understand the documentation on how to spawn a process on a
remote
node on QNX6. Does anyone have a code snipet to help me out.Thanks.