Both commands delete the source after successful transfer and use a dotted unique filename for write during upload – once upload is finished successfully, the temporary (hidden) filename is renamed, to what was given on the command line. Thus miming atomicity of mv command.

To manually apply the patch(es) and specs-file(s) supplied in sftp-mv_patches.tar.gz to the following (instructions also in info.txt ):

As base source to be patched install either openssh-4.2p1 (SLES10) or openssh-5.2p1.

Part of the new sftp-commands, mvput and mvget the resulting sftp-binary also got a new option: -p <status-prompt > ( -p “mystat” or -p 999 )

With this, sftp will print out an additional status-line before the usual prompt, which can be used to easily control sftp from within a shell-script (example script included).

If you start the command with -p 999, then it would print old ftp-like numeric status-codes (226 success or 550 error ) – or with -p “mystat” (or any other string) it would just print “mystat success” or “mystat error” , which at least gives a recognizable prompt, different from the regular sftp-prompt.

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up). It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.