I am trying to execute action in multiple servers in my loop but I would like to launch my actions in the first server and go directly to the second one without waiting for the first one to complite .
HOSTS="host1 host2"
For hostname in ${HOST} ;
do ssh -tt ${USERNAME}@${hostname} << EOF
actions
exit
EOF
Done
Anyone has an idea hos to do that in linux sh bash ?
Thank you in advance.