require 'open-uri'

[ "http://search.yahooapis.com/SiteExplorerService/V1/ping?
sitemap=http://rabah.dyndns.org/sitemap.php", "http://submissions.ask.com/ping?sitemap=
http://rabah.dyndns.org/sitemap.php", "http://www.google.com/webmasters/tools/ping?sitemap=
http://rabah.dyndns.org/sitemap.php", "http://webmaster.live.com/ping.aspx?siteMap=
http://rabah.dyndns.org/sitemap.php" ].each do |url| open(url,:proxy=>nil) do |s| if s.status[0] == "200" puts "Sitemap successfully submitted to #{url}"
else puts "Failed to submit sitemap to #{url}" end end end