# Wget abd block

**URL:** <https://www.ruby-forum.com/t/wget-abd-block/193274>\
**Category:** Ruby\
**Created:** [August 14, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/wget-abd-block/193274 "2010-08-14T16:16:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yerlan\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/3d9bf3/32.png) [@yerlan\_k](https://www.ruby-forum.com/u/yerlan_k)\
**Post date:** [August 14, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/wget-abd-block/193274/1 "2010-08-14T16:16:27Z")

</div>

Hello. I’m want write a script, which download all the podcast from  
rss-feed.  
This is code, not work:  
def wget  
@mp3\_links.each do |m|  
system(“wget”, “#{m}”)  
end  
end  
I understand that to be linked to the delay, but how?

---

<div class="post-metadata">

**Author:** ![yerlan\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/3d9bf3/32.png) [@yerlan\_k](https://www.ruby-forum.com/u/yerlan_k)\
**Post date:** [August 14, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/wget-abd-block/193274/2 "2010-08-14T20:54:24Z")

</div>

On Saturday, August 14, 2010 09:16:29 am Yerlan Kusainov wrote:

> Hello. I’m want write a script, which download all the podcast from  
> rss-feed.

Try bashpodder:

[http://lincgeek.org/bashpodder/](http://lincgeek.org/bashpodder/)

> This is code, not work:  
> def wget  
> @mp3\_links.each do |m|  
> system(“wget”, “#{m}”)  
> end  
> end

A nit: Why would you do “#{m}”? If m is already a string, just use it by  
itself:

system ‘wget’, m

If it’s not, you could do to\_s, but system probably already knows to do  
that.

> I understand that to be linked to the delay, but how?

What delay? I’m not sure what you mean here…

---

<div class="post-metadata">

**Author:** ![yerlan\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/3d9bf3/32.png) [@yerlan\_k](https://www.ruby-forum.com/u/yerlan_k)\
**Post date:** [August 15, 2010, 9:15am UTC](https://www.ruby-forum.com/t/wget-abd-block/193274/3 "2010-08-15T09:15:30Z")

</div>

thx for the reply, i finished write the script.  
You’re right, it was necessary to write only system("wget ",m)
