Re: Openssh server detect file transfer finished

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Jochen Bern wrote:
> (*) E.g., a la "uuencode tempfile < sourcefile | ssh user@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@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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux