Re: wget ignoring no-parent, creating entire parent directory

2022-03-01 Thread Tim Rühsen

Hi Stephane,

On 28.02.22 18:12, Stephane Ascoet wrote:

Date: Sun, 27 Feb 2022 14:26:59 +0100
From: Tim Rühsen 

Did you already check the man page for --cut-dirs ?

Hi, Tim answer is a little rude. Clearer and more complete explanation: 
you don't understand what "noparent" is for. It means that Wget won't 
download objects that are above the one you put on the command line. It 
doesn't deal with the re-creation of the domain and directory structure. 
Wget always try to create this one, and as Tim wrote, "--cut-dirs" 
enable to shorten the numbers of these ones that will be created.


This is a much better explanation than mine overly short comment :-).

Please excuse my brevity in the previous answer - I really didn't meant 
to be rude. Thanks for pointing out the feeling/reception on your side. 
It will help me to improve my answers (hopefully) !


Regards, Tim


OpenPGP_signature
Description: OpenPGP digital signature


Re: wget ignoring no-parent, creating entire parent directory

2022-02-28 Thread Stephane Ascoet

Date: Sun, 27 Feb 2022 14:26:59 +0100
From: Tim Rühsen 

Did you already check the man page for --cut-dirs ?

Hi, Tim answer is a little rude. Clearer and more complete explanation: 
you don't understand what "noparent" is for. It means that Wget won't 
download objects that are above the one you put on the command line. It 
doesn't deal with the re-creation of the domain and directory structure. 
Wget always try to create this one, and as Tim wrote, "--cut-dirs" 
enable to shorten the numbers of these ones that will be created.

--
Sincerely, Stephane Ascoet




Re: wget ignoring no-parent, creating entire parent directory structure

2022-02-27 Thread Tim Rühsen

On 25.02.22 18:51, Jibun no Kage . wrote:
wget -r -np -R index.* 
http://infrastructure.dd.org/repository/infrastructure/usr/local/bin/rpitx/signals/


Did you already check the man page for --cut-dirs ?

Regards, Tim


OpenPGP_signature
Description: OpenPGP digital signature


wget ignoring no-parent, creating entire parent directory structure

2022-02-25 Thread Jibun no Kage .
I am struggling with wget refusing apparently to honor the --no-parent 
or -np options.   Steps to repeat the issue:


# mkdir -p /usr/local/bin/rpitx/signals
# cd /usr/local/bin/rpitx/signals
# wget -r -np -R index.* 
http://infrastructure.dd.org/repository/infrastructure/usr/local/bin/rpitx/signals/


What I get is the entire directory structure copied.   The result is...

# pwd
/usr/local/bin/rpitx/signals
# tree
.
└── infrastructure.dd.org
    └── repository
    └── infrastructure
    └── usr
    └── local
    └── bin
    └── rpitx
    └── signals
    ├── Casitas
    │   ├── Fast.iq
    │   ├── Light.iq
    │   ├── Medium.iq
    │   ├── Off.iq
    │   ├── Reverse.iq
    │   └── Slow.iq
    ├── Great Hall
    │   ├── Fast.iq
    │   ├── Light.iq
    │   ├── Medium.iq
    │   ├── Off.iq
    │   ├── Reverse.iq
    │   └── Slow.iq
    ├── Great Room
    │   ├── Fast.iq
    │   ├── Light.iq
    │   ├── Medium.iq
    │   ├── Off.iq
    │   ├── Reverse.iq
    │   └── Slow.iq
    ├── Master Bath
    │   ├── Fast.iq
    │   ├── Light.iq
    │   ├── Medium.iq
    │   ├── Off.iq
    │   └── Slow.iq
    └── Master Room
    ├── Fast.iq
    ├── Light.iq
    ├── Medium.iq
    ├── Off.iq
    ├── Reverse.iq
    └── Slow.iq

The desired result is this...

# pwd
/usr/local/bin/rpitx/signals
# tree
.
├── Casitas
│   ├── Fast.iq
│   ├── Light.iq
│   ├── Medium.iq
│   ├── Off.iq
│   ├── Reverse.iq
│   └── Slow.iq
├── Great Hall
│   ├── Fast.iq
│   ├── Light.iq
│   ├── Medium.iq
│   ├── Off.iq
│   ├── Reverse.iq
│   └── Slow.iq
├── Great Room
│   ├── Fast.iq
│   ├── Light.iq
│   ├── Medium.iq
│   ├── Off.iq
│   ├── Reverse.iq
│   └── Slow.iq
├── Master Bath
│   ├── Fast.iq
│   ├── Light.iq
│   ├── Medium.iq
│   ├── Off.iq
│   └── Slow.iq
└── Master Room
    ├── Fast.iq
    ├── Light.iq
    ├── Medium.iq
    ├── Off.iq
    ├── Reverse.iq
    └── Slow.iq

Version of wget is 1.21, and happens to be on Debian 11 (bullseye).  The 
files desired are hosted on an apache2 web server.  Using long or short 
options does not address the issue at all.  I have seen 100s of examples 
on google stating that --no-parent or -np SHOULD stop creating of the 
parent directory structure, but as above shows this is still happening.  
Any help greatly appreciated.  Also, I am NOT using -l or cut dirs 
options BECAUSE I can't predict the sub directory structure, it may 
change over time, including ALL sub-directories that may exist is 
desired.  I search the entire system, no .wgetrc file appears to exist.  
The /etc/wgetrc file has NO settings enabled, entire file is commented out.


I tried the -d option but I can't seem to capture its output to a file?  
It was way to long to cut and past here.


-JnK