[wellylug] ftp script
William Hamilton
william.hamilton at gmail.com
Fri Nov 14 18:46:50 NZDT 2008
2008/11/14 Kevin O'Riordan <kfor at compsoc.com>
>
> 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
>
> Kevin, bloody magic.. I feel like such an idiot with that one.. trying to
> make the code short as poss :)
>
thanks for everyone's input.
W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20081114/8b997ef5/attachment.htm
More information about the wellylug
mailing list