I am experimenting to run my simulations with two computers. Every time I run the script on the server, it first checks for the computers' availability (a computer is 'available' if its not executing any simulation currently) and then executes the simulation on that computer.
My script is organized the following way:
if(client is available)
ssh into client
if(server is available)
PROBLEM: If the client is available, I want linux to initiate the simulation in the client and then come back and continue executing the remaining of the script [My simulation takes atleast 4 hours to get done. If I am going to wait for that many hours for the control to return to the server, then there is no point in this experiment at all, right?! I want these simulations to run parallely!
If anybody could help me in getting the control back to the next line of the script (and hence to check server availability and initiate the simulation in the server), it would be awesome!
Thanks in advance!