Re: wget question
From: John-Paul Stewart (jpstewart_at_binaryfoundry.ca)
Date: 05/28/04
- Next message: Dave: "raid/lvm restore question"
- Previous message: Stidi: "Re: Limit to processes"
- In reply to: Dave Brown: "wget question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 May 2004 14:41:49 -0400
Dave Brown wrote:
> I tried to do a "non-anonymous" file transfer using wget, using:
>
> wget ftp://user:passwd@earth/var/www/html/somefile.html
>
> but I couldn't figure out how to convince the ftpd on the other side to
> go "above" the user's home directory. It looks for
> /home/user/var/www/html, which is not what I want. A normal ftp client
> seems to be able to go to other directories, (although there is a chroot
> option in the server which could prevent this).
wget ftp://user:passwd@earth//var/www/html/somefile.html
Note the extra slash. That should work provided the ftp server will
permit you access to /var/www/html.
Just remember that everything after ftp://server/ is a path like any
other Unix path. You asked for var/www/html which it treats as a
relative path (since it doesn't start with /). So start the path with /
to have it treated as an absolute path. Since there's already a / at
the the end of the server name, a second / is needed for the absolute path.
- Next message: Dave: "raid/lvm restore question"
- Previous message: Stidi: "Re: Limit to processes"
- In reply to: Dave Brown: "wget question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|