Erase the source file open; specify a tempfile name option
Markus Friedl
markus.friedl at informatik.uni-erlangen.de
Mon May 21 02:29:25 EST 2001
On Sun, May 20, 2001 at 01:39:49PM +0200, Gert Doering wrote:
> scp file remote:file.tmp
> ssh remote mv file.tmp file
you can do
cat file | ssh remote 'cat - > file.tmp && mv file.tmp file'
instead.
More information about the openssh-unix-dev
mailing list