Connection to sftp or ftp


#1

I would like to push some files to ftp server at periodic time. Any source code can be provided ? Just a example to show the server connection and how to send a file. Thanks.


#2

you can use scp filename user@server.xxx:/path/to/dir/


#3

You can look at the legato timer docs for how to do something periodically. libcurl is in the toolchain and on target, so you can use that for ftp. I don’t have an example, but I am sure there are lots of examples on the web.


#4

Thank very much for your reply guys.