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 agoHere's an option: on your PC, create a file named autoftp with the contents:
<div class='codetop'>CODE</div><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 Hope it helps, Ricardo.