My script is:
for i in $(seq $nb_lignes) a list of machines
do
ssh root@$machine -x "java ....."
sleep 10
done
--> i execute this script from machine C
i have two machines A and B ($nb_lignes=2)
ssh root@$machineA -x "java ....." : create a node with Pastry overlay
wait 10 secondes
ssh root@$machineB -x "java .....":create another node join the first (that's way i have use sleep 10 secondes)
i run the script from machine C: i'd like that it display : node 1 is created , wait 10 seconds and display node 2 is created
My problem: it display node 1 is created only
i tape ctrl+c it diplay node 2 is created
PS: the two process java are still runing in machine A and B
Thank you
for i in ..., but you refer to$machinein the body of the loop. I guess what you really meant wasfor machine in .... Please post code that's as close as possible to the code you're actually running, so we don't have to guess which problem are in your original code and which you introduced when you re-typed it.