From: Farrel Lifson Date: 2003-10-13T01:18:20+09:00 Subject: Re: detecting if I am connected to a ISP --=-JN0i0JJe4wBLs49EwtO3 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I wrote a Ruby script that connected to my ISP a while ago. To test if I was connected I would run ifconfig and then parse the first line returned and look for 'ppp' (the name of the connection). This is a bit hackish and I'm pretty sure there is a better way to do it. Farrel --=20 Data Network Architecture Research Lab mailto:flifson@cs.uct.ac.za Dept. of Computer Science http://people.cs.uct.ac.za/~flifs= on University of Cape Town +27-21-650-3127 --=-JN0i0JJe4wBLs49EwtO3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/iX7JGlar2y1bD7ARArcIAKC4jw6Ro0OYm8Kelh3ToHNJIEsyhACfa//E yeTapXMo+8PHucB+eowhjjw= =tWnM -----END PGP SIGNATURE----- --=-JN0i0JJe4wBLs49EwtO3--