[wplug] wget

Bill bhalpin at collaborativefusion.com
Thu Mar 20 10:03:51 EST 2003


Chris looks to me like you are using the wrong tool for the job. 
According to the man page, globbing only works with ftp.  This is
because http doesnt support wildcards (see your error below).  Why not
use something like curl instead?  It supports what you want to do.

-b

On Thu, 2003-03-20 at 09:25, Chris wrote:
> I tried that and it didn't work.  I get the following error:
> 
> [cromano at Atheris cromano]$ wget --glob=on
> "https://www.dazl.com/DAZLdnld/INT000047579/*.EXE"
> Warning: wildcards not supported in HTTP.
> --09:23:47--  https://www.dazl.com/DAZLdnld/INT000047579/*.EXE
>            => `*.EXE'
> Resolving www.dazl.com... done.
> Connecting to www.dazl.com[206.27.100.8]:443... connected.
> HTTP request sent, awaiting response... 500 Internal Server Error
> 09:23:49 ERROR 500: Internal Server Error.
> 
> 
> Chris Romano
> 
> -----Original Message-----
> From: wplug-admin at wplug.org [mailto:wplug-admin at wplug.org] On Behalf Of Bill
> Sent: Thursday, March 20, 2003 9:16 AM
> To: wplug
> Subject: Re: [wplug] wget
> 
> >From the man page:
>  -g on/off
>        --glob=on/off
>            Turn FTP globbing on or off.  Globbing means you may use the
> shell-like special characters (wildcards), like *, ?, [
>            and ] to retrieve more than one file from the same directory
> at once, like:
> 
>                    wget ftp://gnjilux.srk.fer.hr/*.msg
> 
>            By default, globbing will be turned on if the URL contains a
> globbing character.  This option may be used to turn
>            globbing on or off permanently.
> 
>            You may have to quote the URL to protect it from being
> expanded by your shell.  Globbing makes Wget look for a
>            directory listing, which is system-specific.  This is why it
> currently works only with Unix FTP servers (and the
>            ones emulating Unix "ls" output).
> 
> 
> On Wed, 2003-03-19 at 16:39, Chris wrote:
> > I have been reading the man pages on this but can't seem to find what I am
> > looking for.  I might have missed it.  I don't know.  How do you use
> > wildcards for file names?  There are many files in a directory that I want
> > to download.  They are all named with numbers.  I tried path/*.exe, but I
> > get an error saying that wildcards are not allowed.  All the files that I
> > want are going to change from time to time, but should still be named with
> > numbers.  Am I going to have to write a script that just goes from
> > 00000000.exe to 99999999.exe?  I hope not.
> > 
> >  
> > 
> > Thanks,
> > 
> >  
> > 
> > Chris Romano
> > 
> > Atlas Brokerage Company, L.P.
> > 
> > cromano at atlasbd.com
> > 
> > 724.743.7900
> > 
> > ext 221
> > 
> >  
> > 
> 
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug





More information about the wplug mailing list