sftp automated script

HI,

Can anyone has automated sftp script?
I want to upload one file from one server to other.
Could anyone help us?

Search the forum for "sftp automating"; you will find plenty hits.

You can not easily script sftp, this would require using something like 'expect' (see Expect - Wikipedia, the free encyclopedia). If it is possible I would recommend looking into exchanging ssh keys and using scp.

Good Luck

Auto Login

Paswordless SFTP on Unix
http://www.unix.com/shell-programming-scripting/52285-paswordless-sftp-unix.html

problem in making sftp script