Karl Karlsson wrote:
2009/1/3 <[email protected]>:
---- johan beisser <[email protected]> wrote:
On Jan 3, 2009, at 7:27 AM, Ed Ahlsen-Girard wrote:
You're right. You're so right, in fact, that I'd already changed the
code; even I noticed that my original was bad practice.
You're doing this in perl, and not using Net::FTP?
I'm starting to think that's the way to do it.
But my real problem was getting the download to work inside a script,
and none of the presented ideas so far have helped that.
from ftp(1):
Note: mget and mput are not meant to transfer entire directory
subtrees of files. That can be
done by transferring a tar(1) archive of the subtree (in binary
mode).
I don't want a tree. The URLs (I thought) pretty clearly showed that I was
looking for the snaphot files, in the snaphot directory, which is well known
and does not require recursion.
--
Ed Ahlsen-Girard
Ft. Walton Beach FL
Must this be doable just from base? Otherwise, just install lftp which
is scriptable in itself and can easily do stuff like mirror, get
whatever.
lftp would be fine, although at this opint I'm irritated with the
problem enough that I want to find out why my perl isn't getting it done.