FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-10-2008, 11:39 AM
Frank BŁttner
 
Default OT: get files with wget

Sudev Barar schrieb:

On 10/04/2008, Frank BŁttner <frank-buettner@gmx.net> wrote:

Hello,
how can I get all files from an directory of an web server.
An simple wget http://www.foo.bar/sample/* will not work


Perhaps you should do:
wget -r http://www.foo.bar/sample


Hm,
this will download the whole www.foo.bar site

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-10-2008, 12:22 PM
"Bob Beers"
 
Default OT: get files with wget

On Thu, Apr 10, 2008 at 7:39 AM, Frank BŁttner <frank-buettner@gmx.net> wrote:
> Sudev Barar schrieb:
>
>
> > On 10/04/2008, Frank BŁttner <frank-buettner@gmx.net> wrote:
> >
> > > Hello,
> > > how can I get all files from an directory of an web server.
> > > An simple wget http://www.foo.bar/sample/* will not work
> > >
> >
> > Perhaps you should do:
> > wget -r http://www.foo.bar/sample
> >
>
> Hm,
> this will download the whole www.foo.bar site
>

man wget:

-r --> recursive
-nd --> no directories (still gets the whole site)
-l N --> max level of recursion (default max is 5)

--
HTH,
-Bob
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-10-2008, 04:37 PM
"Filipe Brandenburger"
 
Default OT: get files with wget

On Thu, Apr 10, 2008 at 7:39 AM, Frank BŁttner <frank-buettner@gmx.net> wrote:
> > Perhaps you should do:
> > wget -r http://www.foo.bar/sample
>
> Hm,
> this will download the whole www.foo.bar site

Add -np (no parent).

You should also probably add a slash after the directory in the website:

wget -r -np http://www.foo.bar/sample/

Filipe
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-10-2008, 05:08 PM
Frank BŁttner
 
Default OT: get files with wget

Filipe Brandenburger schrieb:

On Thu, Apr 10, 2008 at 7:39 AM, Frank BŁttner <frank-buettner@gmx.net> wrote:

Perhaps you should do:
wget -r http://www.foo.bar/sample

Hm,
this will download the whole www.foo.bar site


Add -np (no parent).

You should also probably add a slash after the directory in the website:

wget -r -np http://www.foo.bar/sample/

Filipe
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Yes this will do the job.
Thanks.

Frank

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 04:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org