From: Avdi Grimm Date: 2008-03-18T00:25:43+09:00 Subject: Re: Test for Internet Connection On Mon, Mar 17, 2008 at 11:08 AM, Cory Cory wrote: > I am using Ubuntu. AFAIK the "right" way to test for a network connection on Ubuntu is to use the NetworkManager D-Bus interface. I believe there is a D-Bus library for Ruby. A quick google for the NetworkManager D-Bus API yields this: http://people.redhat.com/dcbw/NetworkManager/NetworkManager%20DBUS%20API.txt -- Avdi