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 agoThis is something I wrote to the forum before it crashed that I found on google that may be of help.
"I found a few things on the internet and adapted them today to make life easier. Try this shell script. # !/bin/sh { echo "open uClinux" echo "user root uClinux" echo "put ./test /bin/test" echo "bye" } | ftp -vin { echo "open uClinux" sleep 1 echo "root" sleep .2 echo "uClinux" sleep .5 echo "chmod 777 /bin/test" sleep .5 echo "gdbserver localhost:10000 /bin/test" sleep 1 } | telnet # end of file# " This is just an alternate way, but if it helps anyone........