From: Ken Bloom Date: 2008-04-18T23:40:13+09:00 Subject: Re: system(ping) On Thu, 17 Apr 2008 16:04:39 -0500, 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 I think you're missing a space after the 5. -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/