First, I'm on a Mac.

I have the following shell script:
Code:
#!/bin/sh
HOST='ftp.server.com'
USER='user'
PASSWD='password'
REMOTE='"remote file"'
FILE='"local file"'
DIR='/usr/home/User/public_html/'
 
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd $DIR
put $FILE $REMOTE
quit
END_SCRIPT
exit 0
In this example, I tried to upload from a mounted volume:
Code:
FILE='"Volumes/Backup HD/Applications/ReadMe.txt"'
Normally, ftp would accept this. But when run from the script, it balks:
Code:
Can't open `Volumes/Backup HD/Applications/ReadMe.txt': No such file or directory
So is there some way to get this script to upload from a mounted volume?