ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
no it won't work as I have same memory space for all the node and the server
and even if i have diff. space i have to keep on changing the parameter like node0 node1 node2
As far as I understand it, xterm will close the window as soon as the script you are running on the remote machine has terminated. If you don't want the window to close, you will have to stop that script from terminating.
ya what u suggested is right I open 5 terminal on my PC and tried these command without xterm and it's working fine
but I have to run these command in new terminal automatically
and I don't know how the window is getting closed because 4 out 5 machine are server and they keep on listening for the client then how it's getting terminate
Could you tell me how to do this might be using something else like konsole (i tried this one but seems doesn't work)
I am running server client by using this command on 5 different pcs
when I do it manually like open 5 terminal ssh to server then node then running program on those nodes it's working fine
but when I try to do the same using above command processing speed is very very slow and sometime it do nothing.
another problem is in releasing the port number (as it doesn't happen during the normal run). I think there is some problem when my program is ending. it's not getting closed properly. how can I fix it?
I have to ssh to one server then from there i have to ssh to few nodes say 5.
now I have to run 5 different program for each node (server-client program) so all program are connected.
In one of the five window I have to give the input. but before giving input I have to see one value on all the other nodes if it's ok then only I will give the input otherwise I have to restart from initial.
I am using xterm because people in this forum told me to do so I don't know if there is any other way to do so (I am new to linux).
If you have a another way to do so then please help me, Thanks
but before giving input I have to see one value on all the other nodes if it's ok then only I will give the input otherwise I have to restart from initial.
Ever thought about automating this step? I mean, how do you know it's "OK" to proceed? If it's by looking at output given by the x1.sh program (does it print "ok to proceed" or something obvious?) then you can just parse the output and automate it.
Server(node0)-agent3(node1)-agent2(node2)-agent1(node3)-client(node4) that's how I have 5 nodes.
now when I will run my program I have to look for one variable (it will be printed on agent1 itself) at node3 i.e. agent1 if it's 0 it's working fine if not then restart from beginning. I have to run one set for 5 times and there are 18 different sets. that means I have to start and all five program 90 times.
now the problem is when I try to do this using xterm and give ctrl+c instead of only closing the server or client (where ever i am giving ctrl+c) it's directly closing the connection with the server and that's the problem. because my server/client is not properly exited. when I try to run it for another iteration it's facing a problem with port binding. (address is already in use.)
Last edited by kushkothari; 10-29-2008 at 11:17 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.