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 ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- <div class='codetop'>CODE --- Quote End --- <div class='codemain' style='height:200px;white-space:pre;overflow:auto'>ftp -v -n <<EOF open $1 user anonymous passwd binary lcd /home/jars/microvote/eclipse/firmware/bin put $2 bye</div> Make this file executable using: chmod 777 autoftp Then you just have to type something like: ./autoftp 192.168.2.3 myapp[/b] --- Quote End --- Hello Ricardo, Thanks for your suggestion. I'm not sure I understand it completely. Haven't got much experience with scripting. Do you think you could explain a little on the code? Would be really nice I'll try however to program it. I believe in line /autoftp 192.168.2.3 myapp , myapp corresponds to the file I am trying to send? What is the binary command for? Thank you very much. Seems this is a light as it can be! Will try it for sure. Regards, Francisco