LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp bash script (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-bash-script-638732/)

idgeitman 04-29-2008 03:33 PM

ftp bash script
 
Hey all,

I've been trying to get a little ftp script to work but when it goes to actually upload the file it just hangs, Any ideas on what im doing wrong?
thanks!

ftp -ivn <<EOL
open ftpaddress
user username password
binary
lcd /home/idgeitman/Desktop/
put example.jpg
bye
quit



~ Idgeitman

acid_kewpie 04-29-2008 04:03 PM

well you aren't ending the redirection. Staying with what you've done you should have "EOL" after the quit to signify the end of the redirection.


All times are GMT -5. The time now is 04:24 AM.