Openssh server detect file transfer finished
    Peter Stuge 
    peter at stuge.se
       
    Thu Dec  3 04:15:44 AEDT 2020
    
    
  
Jochen Bern wrote:
> (*) E.g., a la "uuencode tempfile < sourcefile | ssh user at host "uudecode
> && mv tempfile finalfile", not that I'd *recommend* such an approach ...
ssh is 8-bit clean so no need for uuencode. One could:
ssh user at host 'f=`mktemp`; cat > "$f" && mv "$f" finalfile || rm "$f"' < srcfile
..or use a tool on top of ssh, like rsync, which does this and more.
//Peter
    
    
More information about the openssh-unix-dev
mailing list