March 13th, 2011, 01:06 AM
Ftp shell script problem
First, I'm on a Mac.
I have the following shell script:
In this example, I tried to upload from a mounted volume:
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE $REMOTE
Normally, ftp would accept this. But when run from the script, it balks:
So is there some way to get this script to upload from a mounted volume?
Can't open `Volumes/Backup HD/Applications/ReadMe.txt': No such file or directory