title: After ssh/rsync to a remote destination, how can the destination machine can know about the new file as soon as the transfer finishes?
body: <p>I am doing ssh/rsync to a remote server. I want the file to then be transfered by the server to another remote machine (I can't transfer directly). For this, the server should know that it has received a new file as soon as the transfer finishes.</p>
  
  <p>So how the server can know about the new file the earliest?</p>