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: Nicoud, Christian
Subject: Re: [Bug-wget] "No matches on pattern"
Date: Fri, 31 Jan 2014 10:42:33 +0000

Hi,

I use --no-remove-listing and you can see that files are viewed:

-bash-3.2$ /usr/sfw/bin/wget -nc --tries=10 --no-remove-listing 
'ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_*.csv' --ftp-user=diams 
--ftp-password=diams38
--2014-01-31 11:23:00--  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.

    [ <=>                                                                       
    ] 1,036       --.-K/s   in 0.003s

2014-01-31 11:23:00 (334 KB/s) - `.listing' saved [1036]

No matches on pattern `IA_INC_bihourly_DIAMS_extraction_*.csv'.
-bash-3.2$ ls -la .listing
-rw-r--r--   1 diams    users       1036 janv 31 11:23 .listing
-bash-3.2$ cat .listing
total 673
drwxr-xr-x   6 diams    users         14 janv 31 11:11 .
dr-xr-xr-x   4 root     root           4 déc  12 09:28 ..
-rw-------   1 diams    users      17923 janv 30 18:11 .bash_history
-rw-r--r--   1 diams    users        310 déc  12 09:32 .bash_profile
drwxr-xr-x   2 diams    users          7 janv 27 13:53 .ncftp
-rw-r--r--   1 diams    users          0 janv 31 11:11 0
-rw-r--r--   1 diams    users     246468 déc  12 13:13 bpo_spool.txt
-rw-r--r--   1 diams    users       8262 janv 22 10:34 
IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
-rw-r--r--   1 diams    users       8262 janv 22 10:35 
IA_INC_bihourly_DIAMS_extraction_2014-01-17-23-58-27.csv
-rw-r--r--   1 diams    users       3416 janv 29 16:01 
IA_INC_bihourly_DIAMS_extraction_2014-01-18-23-58-27.csv
drwxr-xr-x   6 diams    users          8 janv 31 11:22 itsm
drwxr-xr-x   6 diams    users         12 janv 27 11:03 itsm2
-rw-r--r--   1 diams    users         57 déc  12 13:15 test.mail
drwxr-xr-x   2 diams    users          7 janv 30 15:46 tst


and the command below works:

-bash-3.2$ /usr/sfw/bin/wget -nc --tries=10 --no-remove-listing 
'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-31 11:25:15--  
ftp://127.0.0.1/IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
           => `IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv'
Connecting to 127.0.0.1:21... connected.
Logging in as diams ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD not needed.
==> 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 0.002s

2014-01-31 11:25:15 (3.29 MB/s) - 
`IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv' saved [8262]

-bash-3.2$ ls -lrt
total 21
-rw-r--r--   1 diams    users        160 janv 30 17:24 mailFile.tmp
-rw-r--r--   1 diams    users          0 janv 30 17:28 ftp.tmp
-rw-r--r--   1 diams    users       8262 janv 31 11:25 
IA_INC_bihourly_DIAMS_extraction_2014-01-16-23-58-27.csv
-bas


I must clarify that:

·        the host server is FileZilla Server on Windows 7

·        the local server is on SunOS 5.10.


Cordialement/ Best regards
______________________________________________________________________
[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>

De : Darshit Shah [mailto:address@hidden
Envoyé : jeudi 30 janvier 2014 18:52
À : Nicoud, Christian
Cc : address@hidden; Pommier, Bruno
Objet : Re: [Bug-wget] "No matches on pattern"

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<mailto: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<http://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<http://127.0.0.1/.listing>' saved [755]

Removed `127.0.0.1/.listing<http://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<http://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<http://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><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

GIF image

GIF image

GIF image

GIF image

GIF image

GIF image

GIF image


reply via email to

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