Re: non-interactive sftp and 'put'



Bo schrieb:
On Oct 18, 1:43 pm, Gilles Pion <nosuchu...@xxxxxxxxxxxxxxxx> wrote:
Ref: <1192458710.577219.230...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> de
Ens8675...@xxxxxxx



I have the authentication set up and working correctly, just have a
question on how to non-interactively upload files to the server using
sftp. I can non-interactively download files using the following:
sftp [[user@]host[:file [file]]]
sftp [[user@]host[:dir[/]]]
Why not use this method:
echo "put <localfile> <remotefile> " | sftp [user@]host
--
Gilles "Cool Raoul" -http://coolraoul.cvp-net.com/


That worked, thank you.

why not
scp user@host:remotefile localfile
?
.