wget  

wget "how do I do..."

Craig A. Finseth
Fri, 15 Sep 2006 13:57:21 -0700

I am trying to mirror an FTP site which has access control in that it
doesn't let you do a "dir" on the root (it returns an empty list).  In
other wods, if you manually do:

        ftp <site>
        username: ...
        password: ...
        dir

You get an empty list.  But if you do:

        cd <myDir>
        dir

You get your files.  Note that I've tried doing:

        wget ftp://...:...@<site>/<myDir>

and it still fails.  It appears that wget is getting the empty listing
and (not unreasonably) deciding that there is nothing there.

In essence, what I want to do insert a "cd <dir>" after login but
before wget tries to do anything else.

Is there an existing way to do this, or do I need to modify the code?

FWIW, it's a Windows server.

Craig A. Finseth                [EMAIL PROTECTED]
Systems Architect               +1 651 201 1011 desk
State of Minnesota, Office of Enterprise Technology
658 Cedar Ave                   +1 651 297 5368 fax
St Paul MN 55155                +1 651 297 1111 NOC, for reporting problems