[lug] wget question

D. Stimits stimits at idcomm.com
Mon Jun 3 09:48:19 MDT 2002


Jim Buzbee wrote:
> 
> Anyone have expertise with wget ?
> 
> I've been trying to convince wget to fetch a file for me without much
> luck. I'm using an ftp url with embedded username and password. e.g. :
> 
> ftp://user:password@host/
> 
> My problem is that the file I want to get is one directory above the
> login directory, i.e. ftp://user:password@host/../MYFILE - But wget
> seems to ignore the .. path.  If I interactively ftp in, I can get the
> file without issue so it's not any sort of permission problem.

I would have to wonder about the ".." in the path, it is a relative
path. The above URL is not legit in most cases, it says to go to the ftp
root (usually "/" unless it is a chroot environment, in which case ".."
must be ignored or else allow the session to exit the chroot jail
environment) and then to the parent of the ftp root...which is outside
of the ftp space. I would double check that the ".." is legitimate, wget
is probably doing the right thing. My guess is that manual login is
tolerant of error, and wget stops when it sees the error (as it should).

D. Stimits, stimits at idcomm.com



More information about the LUG mailing list