🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #17635

Re: Detectar la conexión a Internet

#17635
From: Orestes Sanchez
Date: Sat, 04 Dec 1999 00:00
25 lines
1110 bytes
Angel wrote:

>         ¿Cómo puedo programar un script para que me detecte si estoy
> conectado a Internet?
>
>         Trabajo con Red Hat 6.0 y una conexión RDSI.
>
>         Gracias
>
> Angel Belda
> abelda@softhome.net

Cuando te conectas con ppp, se ejecuta el script

         /etc/ppp/ip-up.local

En él puedes poner lo que quieras.

Tambien puedes hacer que se comprueben periodicamente los interfaces de
red con

   /sbin/ifconfig -a

y detectar cuando hay un interfaz que no es el loopback (lo).
Technical Details
Message-ID: <38486D9D.A371AFE1@retemail.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8291b4$a7b$1@talia.mad.ttd.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,268ee3abf3c0e3fc
X-Google-Attributes: gidf86c8,public
From: Orestes Sanchez <orestes@retemail.es>
Subject: Re: Detectar la conexión a Internet
Date: 1999/12/04
Message-ID: <38486D9D.A371AFE1@retemail.es>
X-Deja-AN: 556416344
Content-Transfer-Encoding: quoted-printable
References: <8291b4$a7b$1@talia.mad.ttd.net>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Organization: Iddeo - Retevisi�n
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion