Automated FTP script

view full story

http://unix.stackexchange.com – I want a file to be uploaded daily to remote server using automated ftp command. Can someone please help me on this below command to check whether it's right or wrong? curl -Tu username:password /path/to/dir/*(om[1]) sftp://sftp.example.com/remote/dir where, username:password => it's my own username and password. /path/to/dir/*(om[1]) => to get the latest(updated) file from my local dir sftp://sftp.example.com/remote/dir => secure file transfer Please help me on this. Thanks Hari (HowTos)