LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   wget --exclude-directories option broken? (fc2) (http://www.linuxquestions.org/questions/fedora-35/wget-exclude-directories-option-broken-fc2-188034/)

fsbooks 05-31-2004 11:31 AM

wget --exclude-directories option broken? (fc2)
 
When I run the following command with wget (wget-1.9.1-5) from fedora core 2, it does not exclude the updates/2/i386/debug directory, probably the SRPMS directory as well, but I kill it first.

$ wget --verbose --limit-rate=7k -t7 -w7 --random-wait -E -k -K -nH --cut-dirs=2 -x -np -m -X */i386/debug/,*/i386/SRPMS/ -a /tmp/fedoraN.log ftp://mirrors.kernel.org/fedora/core/updates/2/i386


Note that the wget binary from wget-1.8.2-15.3 (fedora core 1) when run in fedora core 2 works fine.

I tried a bug report to fedora, but their bugzilla seemed broken (I did search, but got no relevant hits). Can anyone duplicate this problem?

Thanks, Chris

rino.caldelli 01-03-2008 03:17 AM

exclude option wants a full path, not one relative to the download URL

so if downloading from http://ayo.freshrpms.net/fedora/linu.../RPMS.updates/

you would do --exclude-directories=fedora/linux/3/i386/RPMS.updates/debug,fedora/linux/3/i386/RPMS.updates/headers

Hope it helped!

elitenoobboy 06-20-2009 05:29 PM

Quote:

Originally Posted by rino.caldelli (Post 3009447)
exclude option wants a full path, not one relative to the download URL

so if downloading from http://ayo.freshrpms.net/fedora/linu.../RPMS.updates/

you would do --exclude-directories=fedora/linux/3/i386/RPMS.updates/debug,fedora/linux/3/i386/RPMS.updates/headers

Hope it helped!

So, if that command executed properly, then the bug would be that it ignore the wildcards such as * instead of it ignoring te exclude directories completely. The man page says it should accept wildcards.

unSpawn 06-20-2009 06:08 PM

The practice of responding to a thread that died out long ago is not helpful.


All times are GMT -5. The time now is 03:33 AM.