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?