[wellylug] ftp script
Kevin O'Riordan
kfor at compsoc.com
Fri Nov 14 15:55:01 NZDT 2008
Hi William,
> mget $REMOTEDIR/$FILE*
...
> local: file does not exist.
Two options: either you can change your lcd to
lcd /home/webfund
or change your mget line to
cd $REMOTEDIR
mget $FILE*
In your original, your mget is trying to create the $FILE* files in
the $REMOTEDIR dir _inside_ the dir you've already lcd'd to. So it's
trying to create the file:
/home/webfund/backups/backups/20081113
^^^^^^^^
but it fails because it can't create that second 'backups' dir.
You could also consider using wget or something like that instead.
hope that's of use,
Kevin
More information about the wellylug
mailing list