On Mon, Mar 17, 2008 at 11:08 AM, Cory Cory <cg821105 / ohio.edu> 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