Ask for help for shell problem solution

I have three centos servers. Through the shell script, I want A to execute a .sh script in C and B to execute a script, and then send their generated files to C after An and B have finished executing. Because the compilation and execution time is very long, my current implementation is written in C"s shell script: (ssh key, has been configured to operate without a password)

ssh root@200.200.123.80 "Let A perform the appropriate action"
during the execution of A, B is idle on the server
ssh root@200.200.123.111 "Let B perform the appropriate action"

is there a way for An and B to execute at the same time, and then send their respective files after execution, and the C side waits according to whether the required files are generated?


it is recommended that you learn about automated operation and maintenance tools such as fabric or ansible, which allow you to use simple scripts to define tasks, execute tasks, get task execution results, and so on.


have not used fabric, but using ansible,ansible can solve your problem. Ansible can only be installed on the host computer

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9e412-47799.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9e412-47799.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?