Forum Discussion
Altera_Forum
Honored Contributor
17 years agoAutomate FTP
Hello champs, I am trying to write a routine that automates FTP transfers. I was using ftpput in Busybox but it consumes way too much memory. I've seen some examples but they are in ksh...
Altera_Forum
Honored Contributor
17 years agoI understand that the program called "ftp" is intended for interactive use by a human. I don't think that it's a good idea to try to abuse it for automation.
Unless you find an appropriate uploading command line utility (such as wget for downloading), I suppose you need to write the protocol handling in C (maybe there is a decent ftrp library somewhere, that you can use). ncftp is a package for PCs that containf ncftpput which seems to do what you want. Here http://linux.wareseeker.com/free-thin-ftp-upload/ (http://linux.wareseeker.com/free-thin-ftp-upload/) there seem to be several more examples. You might try to port some of this to NIOS uClinux or extract some code to include in your application. -Michael