Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to start Program on another host in Qnet?: (2 Items)
   
How to start Program on another host in Qnet?  
There are two hosts A1 and A2 in qnet and two photon-programs Prog1 and Prog2.
Prog1 start on host A1 and PtSpawn() Prog2 on host A2:

...
fl_prog_name="Prog2";
fl_host_name="A2";

argv[0] = fl_prog_name;					
argv[1] = NULL;

opts = PtSpawnDefaults;
opts.options.flags = SPAWN_SETND;
opts.options.nd = netmgr_strtond( fl_host_name, NULL);

pid = PtSpawn( fl_prog_name, argv, NULL, &opts, NULL, NULL, NULL );
...
Up to this point all working nise.

Then on host A1 I start:
$on -n A2 Prog1

Prog1 starts on host A2 and try to PtSpawn() Prog2 on host A2 too. But Prog2 
in real start on host A1. Why it is?

The same effect if I start on host A1:
$ Prog1 -N A2 -P Prog1

Prog1 PtSpawn() Prog1 on host A2, this Prog1 try to PtSpawn() Prog2 ( as default ) on host A2, but
in real Prog2 start on host A1.

How can I start Prog2 on host A2 by PtSpawn() from Prog1 on host A2 too?

Thank you.
Re: How to start Program on another host in Qnet?  
Prog1 and Prog2 are inside of Prog.zip
Attachment: Text Prog.zip 58.35 KB