HOST='192.168.1.64'
USER='anonymous'
PASSWD='blah@blah.com'
FILE='test.txt'

ftp -n $HOST <<BLAH
quote USER $USER
quote PASS $PASSWD
bin
get $FILE
quit
END_SCRIPT
exit 0



#!/bin/sh
HOST='ftpperso.free.fr'
USER='patrice.delpy'
PASSWD='0ghumsaz'
FILE='file.txt'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0

What is likely causing the issue is that you are using by default /usr/kerberos/bin/ftp instead of /usr/bin/ftp. You can confirm which version you’re using by typing “which ftp”.

Kerberos FTP is of course expecting Kerberos authentication and throws a warning message if you’re not using it.

To alleviate the warning/error, specify the full path to the ftp you want to use, which in most cases would be /usr/bin/ftp. To simplify this and to prevent doing so in the future, you could set up an alias in your .profile or .bash_profile like this:

alias ftp=/usr/bin/ftp
alias ftp=/usr/bin/ftp




sudo apt-get install imagemagick ftp metar gnome-schedule

#!/bin/sh
cd /home/pi/webcam
ftp -i <<**
open ftpperso.free.fr
cd webcam
put viewcam.jpg
disconnect
bye *