I have a client and a host program (written in c) which I want to run from two different remote locations simultaneously. Since I have to do this some 50 times to gather data, I don't want to have to run them individually. On one side, I need to log in via ssh, start the script and tell it to write the output to a file. Then I need to log into another box via ssh and tell it to send the data, and then repeat the whole process another 49 times.
I figure what I need is to do is run the two commands from two separate windows.
How do I tell a single bash script to spawn two windows, input separate commands into each window and then come back to the parent window?