From: Phillip Gawlowski Date: 2010-01-23T12:30:05+09:00 Subject: Re: Use Ruby to make a MTU sweep utility (Ping) On 23.01.2010 03:40, Dale Ackerman wrote: > Hi > > I've had a request to make a utility (I want to use Ruby) that does a > MTU sweep looking for black holes in routes. So I need a library or a > way to run ping in both a OS X, Linux and Windows environment. The > utility will ping an IP and continue to increment the package / payload > size until error if any The MTU will be (max_size + 28). Can I use Ruby > to do this? I found a ping gem and the std. lib has ping as well but > very limited in options. What else is there? You could wrap the OS ping variants (Linux and Mac OS X are probably identical, since both use the GNU utils, so you only have to check for Windows) in your own code, and use that. They all should provide a means to modify packet size (Windows' ping.exe does), so you can achieve your desired result. -- Phillip Gawlowski