March 13th, 2011, 01:06 AM
Join Date: Aug 2003
Time spent in forums: 1 Day 18 h 48 m 38 sec
Reputation Power: 11
Ftp shell script problem
First, I'm on a Mac.
I have the following shell script:
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE $REMOTE
In this example, I tried to upload from a mounted volume:
Normally, ftp would accept this. But when run from the script, it balks:
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?