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 agoHello,
I've made modifications to my application. Eliminated the recursive part to a single program that fills in the buffers, and verifies whether it should send or not the log file via FTP. However, I met the same problem. I haven't figured out how to substitute the ftpput command, and after it is called a few times, the OS says it doesn't have RAM Space. The ftp client provided in make menuconfig ---> user apps ----> network applications ----> ftp works perfectly and is able to send files. but the user has to input all the data. I was wondering if there is a way to automate that one. My idea is , for example, send "ftp 192.3.1.2" to open it in the console, then wait for some time between instructions, and send the "useraccount", "password", "put /file", and "exit" as if I was writing them on the console. I don't know if this can be made by writing on stdin or something. If this is not possible, I think I would have to program the protocol in a very light way in C. Any chances anyone knows about a routine about this. I've read some, but they are quite difficult for me to follow. Also read about tftp, butn since is is done via UDP, I think I will go along with ftp. Any help is appreciated. Thanks in advance Francisco