bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] "No matches on pattern"


From: Darshit Shah
Subject: Re: [Bug-wget] "No matches on pattern"
Date: Thu, 30 Jan 2014 23:21:56 +0530

Hi,

Wget will treat both the local and host servers in the same manner. It is
in fact unable to distinguish between the two. If the command works for one
and not the other, I would believe that the issue lies in the
implementation of the local server that you are using.

Maybe you could run the command on the local server with the
"--no-remove-listing" switch and check the contents of the the .listings
file. It could provide valuable insight. I think the local server does not
send a valid listings file, preventing Wget from identifying the files to
download


On Thu, Jan 30, 2014 at 7:48 PM, Nicoud, Christian <
address@hidden> wrote:

> Hello,
>
> I use
> /usr/sfw/bin/wget --version
> GNU Wget 1.12 built on solaris2.10.
>
> When I try to get files from a FTP  host server with that command:
> /usr/sfw/bin/wget -nc --tries=10   '
> ftp://x.y.z.n/IA_INC_bihourly_DIAMS_extraction_*.csv' --ftp-user=xxx
> --ftp-password=yyyy
> ...
> 014-01-30 14:58:57 (43.1 KB/s) - `.listing' saved [107]
>
> Removed `.listing'.
> --2014-01-30 14:58:57--
> ftp://10.30.20.116/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
>            => `IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv'
> ==> CWD not required.
> ==> PASV ... done.    ==> RETR
> IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv ... done.
> Length: 8262 (8.1K)
>
> 100%[==============================================================================>]
> 8,262       34.1K/s   in 0.2s
>
> 2014-01-30 14:58:57 (34.1 KB/s) -
> `IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv' saved [8262]
> I receive my file IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
>
>
> When I try to get local files from  the local FTP server with that command:
> -bash-3.2$ /usr/sfw/bin/wget -nc --tries=10   '
> ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_*.csv' --ftp-user=diams
> --ftp-password=diams38
> --2014-01-30 15:01:11--
> ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_*.csv
>            => `.listing'
> Connecting to 127.0.0.1:21... connected.
> Logging in as diams ... Logged in!
> ==> SYST ... done.    ==> PWD ... done.
> ==> TYPE I ... done.  ==> CWD not needed.
> ==> PASV ... done.    ==> LIST ... done.
>
>     [ <=>
>           ] 755         --.-K/s   in 0.003s
>
> 2014-01-30 15:01:11 (264 KB/s) - `.listing' saved [755]
>
> Removed `.listing'.
> No matches on pattern `IA_INC_bihourly_DIAMS_extraction_*.csv'.
>
> Is it a bug ?
>
> If I write the file to get, it works:
>
> /usr/sfw/bin/wget -nc --tries=10   -r -np '
> ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv'
> --ftp-user=diams --ftp-password=diams38
> --2014-01-30 15:08:06--
> ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
>            => `127.0.0.1/.listing'
> Connecting to 127.0.0.1:21... connected.
> Logging in as diams ... Logged in!
> ==> SYST ... done.    ==> PWD ... done.
> ==> TYPE I ... done.  ==> CWD not needed.
> ==> PASV ... done.    ==> LIST ... done.
>
>     [ <=>
>           ] 755         --.-K/s   in 0.003s
>
> 2014-01-30 15:08:07 (227 KB/s) - `127.0.0.1/.listing' saved [755]
>
> Removed `127.0.0.1/.listing'.
> --2014-01-30 15:08:07--
> ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
>            => `
> 127.0.0.1/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv'
> ==> CWD not required.
> ==> SIZE IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv ... 8262
> ==> PASV ... done.    ==> RETR
> IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv ... done.
> Length: 8262 (8.1K) (unauthoritative)
>
> 100%[==============================================================================>]
> 8,262       --.-K/s   in 0s
>
> 2014-01-30 15:08:07 (192 MB/s) - `
> 127.0.0.1/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv' saved
> [8262]
>
> FINISHED --2014-01-30 15:08:07--
> Downloaded: 1 files, 8.1K in 0.003s (2.40 MB/s)
>
>
> Could you see why wildcards work with a host FTP server and not with a
> local FTP server?
>
>
> Best regards/ Cordialement/
> ______________________________________________________________________
> [Email_CBE.gif]Christian Nicoud
> tel:04 38 21 12 64
> Capgemini France | Montbonnot
> www.capgemini.com<http://www.capgemini.com/>
>
> People matter, results count.
> _______________________________________________________________________
> Connect with Capgemini:
> [Picto_Blog]<http://www.capgemini.com/insights-and-resources/blogs
> >[twitter]<http://twitter.com/#!/capgeminifrance>[facebook]<
> http://www.facebook.com/capgeminifrance>[linkedin]<
> http://www.linkedin.com/groups/Capgemini-France-3849095
> >[Picto_Slideshare]<http://www.slideshare.net/capgemini>[Picto_YouTube]<
> http://www.youtube.com/capgeminimedia>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>



-- 
Thanking You,
Darshit Shah


reply via email to

[Prev in Thread] Current Thread [Next in Thread]