thx for the reply, i finished write the script.
You're right, it was necessary to write only system("wget ",m)
-- 
Posted via http://www.ruby-forum.com/.