Results 1 to 3 of 3
Hello All,
I am running 3 different exe on three different systems.
One process runs on the host system whereas other two processes are invoked via ssh by running 2 ...
- 07-11-2008 #1Just Joined!
- Join Date
- Jul 2008
- Location
- BANGALORE
- Posts
- 2
Invoking process remotely via SSH
Hello All,
I am running 3 different exe on three different systems.
One process runs on the host system whereas other two processes are invoked via ssh by running 2 scripts on the host system.
ssh root@ip1 'cd path && ./remote_exe1'
exit 0
ssh root@ip2 'cd path && ./remote_exe2'
exit 0
The two remote processeses running on the remote systems create a GRE-tunnel and communicate via it during the flow of execution,but at the instance when the turn comes to exchange data via tunnel,even though the sender process sends data via tunnel succesfully ,the receiver process running on another system doesn receive it.
However when both the scripts are stopped@host,the block is released and the 3 process on 3 different system run to completion.
Kindly help me with the same.
Thank you
Surgin Wizard
- 07-14-2008 #2Just Joined!
- Join Date
- May 2008
- Posts
- 7
.
hope following approach could be of some help
1) write additional code in your program that runs on host - to open socket connection to a program xyz running on other two systems & send the program you want to execute.
2) design xyz such that it accepts socket connection, receives the program (remote_exec?) it wants to execute, forks and execs remote_exec?.
- 07-14-2008 #3Just Joined!
- Join Date
- Jul 2008
- Location
- BANGALORE
- Posts
- 2
All three executables on 3 different systems communicate via socket interface,socket connections are already established.
Plz Suggest something better.


Reply With Quote