मैं कमांड चला रहा हूं
curl -O "http://www.*site*.com/[1-9].png"
लेकिन डाउनलोड विफल हो रहा है। - आउटपुट इस प्रकार है
[1/10]: http://www.*site*.com/1http://w --> 1.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 531 0 531 0 0 1618 0 --:--:-- --:--:-- --:--:-- 1618
और फ़ाइल 1.png में निम्न HTML है:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body><script type="text/javascript">//<![CDATA[try{(function(a){var b="http://",c="www.*site*.com",d="/cdn-cgi/cl/",e="img.gif",f=new a;f.src=[b,c,d,e].join("")})(Image)}catch(e){}//]]></script>
<h1>Not Found</h1>
<p>The requested URL /1http://w was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
ऐसा लगता है कि यह अनुरोध के अंत में पता दोहरा रहा है - निश्चित नहीं कि क्यों
एक समय में प्रत्येक फ़ाइल के लिए कमांड चलाना काम करता है
curl -O "http://www.*site*.com/1.png"
नोट मैंने भी कोशिश की है
curl "http://www.*site*.com/[1-9].png" -o "#1.ext"
इसलिए इसका -ओ विकल्प नहीं है।
1
कर्ल के साथ xargs के साथ प्रयास करें
—
रेनू चंद्रन चिंगनाथ