From: Daniel Berger Date: 2008-04-19T00:43:04+09:00 Subject: Re: system(ping) On Apr 17, 3:04 pm, Heinrich Piard wrote: > Hi, > > any idea how I can hand over each object of the array ip_list to the > system(ping) ? > > Here the code: > ip_list = ['192.168.1.1' , '192.168.1.2' , '192.168.1.3' , '192.168.1.4' > , '192.168.1.5' , '192.168.1.6' , '192.168.1.7' ] > > ip_list.each do |host| >         system('ping -c 5' + host) > end gem install net-ping Regards, Dan