Two centos send files, how to notify each other when sending is finished?

the problem I have now is that, for example, I compiled and packaged a file in centos An and sent it to centos B. what I have done at present is through the scp command to add the id_rsa.pub of An in B / ssh and rename it to authorized_keys,. Now the remaining problem is how to inform B that I have finished sending it, and tell B that I sent a time-stamped compressed package. For example, V1.2.33beta2018-07-05.tar.gz?

Mar.23,2021

this depends on what you are notified to do. If it is a log, the simplest way to achieve it is to call ssh to run on B and add a log message to a specific file. If it is something else, you don't say it clearly, so I can't give you advice.

Menu