[bug #66248] Sending wget spider to the background will avoid issue with Bad file descriptor
anonymous <[email protected]> Tue, 24 Sep 2024 10:40:32 -0400 (EDT)
| Newsgroups | gmane.comp.web.wget.general |
|---|---|
| Message-ID | <[email protected]> |
URL:
<https://savannah.gnu.org/bugs/?66248>
Summary: Sending wget spider to the background will avoid
issue with Bad file descriptor
Group: GNU Wget
Submitter: None
Submitted: Tue 24 Sep 2024 02:40:29 PM UTC
Category: Program Logic
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Name: freddieventura
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release: trunk
Operating System: GNU/Linux
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 24 Sep 2024 02:40:29 PM UTC By: Anonymous
Hi,
I was just doing a simple webcrawl, trying to gather a list of all the urls in
a .txt , doing a spider check first.
I am following the first response on this thread.
https://stackoverflow.com/questions/52610592/wget-spider-a-website-to-collect-all-links
But I am doing
```
wget --spider --force-html --span-hosts -np --limit-rate=20k -e robots=off
--wait=3 --random-wait -r -l2 https://developers.google.com -o wget.log &
```
It works. But I just wanted to run it on the foreground (not send it to the
bacground)
So I am just doing this
```
wget --spider --force-html --span-hosts -np --limit-rate=20k -e robots=off
--wait=3 --random-wait -r -l2 https://developers.google.com -o wget.log
```
This last doesnt work , it takes 3 seconds to exit `wget` giving some lines on
the log like thisone
```
developers.google.com: No such file or directory
developers.google.com/index.html.tmp.tmp: Bad file descriptor
Cannot write to ‘developers.google.com/index.html.tmp.tmp’ (Bad file
descriptor).
Found no broken links.
```
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66248>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZvLPYAAKCRCqLAuaBUf3 TgmvAP9iPNVXsw5yg6KnU8G8hB2J3PPIAtpU1o0nw08WOu4O/gEA6e1JCnE3z1Nm JewgMGANx8e9lRk2LqUYv62LNS9P6gw= =d/fC -----END PGP SIGNATURE-----