I need to automate the execution of several scripts, and I'm writing a script.
The scripts have to run concurrently because they are part of a benchmarking suite.
I'm trying to execute 6 different scripts on two different machines through the following script:
!/bin/bash (cd /opt/scripts sudo sh runp.sh) (cd /opt/scripts sudo sh runt.sh) (cd /opt/scripts sudo sh rund.sh) (echo "iniciando slave remoto" ssh sut@slave <<'ENDSSH' cd /opt/scripts sudo sh runs.sh ENDSSH) (ssh sut@slave <<'ENDSSH' /home/sut/pf/server-sysfs 8989 ENDSSH) (cd /opt/scripts sudo sh runc.sh)
but it blocks on the 3rd script and the echo message doesn't show on screen.
Any hint or help on how can I approach it will be very appreciated.
P.S. I have 0 bash scripting experience, so maybe my approach isn't even remotely right.