<font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">Joining this late, but you could easily do it via GNU parallel. On your command line:</font></font></font><div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif"><br>
</font></font></font></div><div><font size="4" face="courier new, monospace"><font color="#339999">parallel</font> wget ::: <font color="#999999"><a href="http://rubyonrails.org/images/pages/overview/screencasts2.png">http://rubyonrails.org/images/pages/overview/screencasts2.png</a> <a href="http://rubyonrails.org/images/pages/overview/download32.png">http://rubyonrails.org/images/pages/overview/download32.png</a> <a href="http://rubyonrails.org/images/pages/documentation/awdr4.png">http://rubyonrails.org/images/pages/documentation/awdr4.png</a></font></font></div>
<div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">Yes, </font><font face="courier new, monospace">brew install parallel</font></font></font></div>
<div><div><br></div><div><font face="arial, helvetica, sans-serif" size="4">Gerhard</font></div><div><br><hr style="font-family:arial,helvetica,sans-serif"><font color="#3333ff"><font face="arial, helvetica, sans-serif"><a href="http://twitter.com/#!/gerhardlazu" target="_blank">Twitter</a> <a href="https://github.com/gerhard" target="_blank">Github</a> </font><a href="http://gerhardlazu.com/" style="font-family:arial,helvetica,sans-serif" target="_blank">Blog</a></font></div>
<br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 11:07 AM, Andrew Stewart <span dir="ltr"><<a href="mailto:boss@airbladesoftware.com" target="_blank">boss@airbladesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hola El Rug,<br>
<br>
I want to download a number of images over HTTP as quickly as possible. I thought the simplest way would be to use Typhoeus (please tell me if there's a simpler way):<br>
<br>
<a href="https://gist.github.com/airblade/4713705" target="_blank">https://gist.github.com/airblade/4713705</a><br>
<br>
To test that it was working, I added a `sleep 3` inside the `request.on_complete` block (lines 17-19). I then gave it an array of 40 URLs of assets on Amazon S3 and ran it.<br>
<br>
I was expecting this to take ~40s but it actually took 120s. What am I doing wrong?<br>
<br>
I'm on OS X 10.6.8, Ruby 1.9.3p286, typhoeus 0.5.4, ethon 0.5.7, ffi 1.2.1.<br>
<br>
Thanks!<br>
<br>
Cheers,<br>
Andy Stewart<br>
-------<br>
<a href="http://airbladesoftware.com" target="_blank">http://airbladesoftware.com</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br></div>