Ive set up the following ftp script. (called FTP)
Code:
#!/bin/sh
HOST='MyHost'
USER='MyUser'
PASSWD='MyPassword'
FILE= $1
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
however, when i run it with - ./FTP screen.jpg
the screen.jpg file is in the working directory at the time but it outputs
./FTP: line 5: Screen1.jpg: command not found
(local-file) (remote-file)
Any ideas?