Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Wget using backquotes

by andyford (Curate)
on Feb 18, 2007 at 16:30 UTC ( [id://600710]=note: print w/replies, xml ) Need Help??


in reply to Wget using backquotes

Looks like wget is putting the response code into STDERR. I did this

$response = `wget --spider -nv $url 2>&1`;
And got the code into $response.

As for the varying return codes, it probably means that the server you're hitting is not able to respond properly everytime. Maybe it's overloaded, or purposely throttling you. Could be many things.

non-Perl: Andy Ford

Replies are listed 'Best First'.
Re^2: Wget using backquotes
by Anonymous Monk on Jan 03, 2013 at 22:14 UTC
    Thank you! the 2>&1 did the trick for me!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://600710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-19 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found