Article View: es.comp.os.linux.programacion
Article #15234Re: obtener la ip asignada de la interfaz ppp0
From: Ignacio Arenaza
Date: Wed, 19 Jul 2000 00:00
Date: Wed, 19 Jul 2000 00:00
29 lines
1785 bytes
1785 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Roger" == Roger J <Roger_J@localhost.localdomain> writes:
Roger> Bien lo solvente heciendo que mi script ejecute un "netstat
Roger> -nr", filtre y se quede con la ip de la liniea ppp, y
Roger> funcionar funciona, lo que pasa es que me parece una manera
Roger> bastante cutre de obtener ese valor, por eso me preguntaba
Roger> si alguien conoceria alguna manera mas elegante.
/sbin/ifconfig ippp0 | grep 'inet addr' | awk '{print $2}' | \
awk -F: '{print $2}'
Saludos. I�aki.
- --
Get PGP/GPG Keys at http://personales.jet.es/inaki.arenaza/pgpkey.html
A proud member of GULA - http://gula.hispalinux.es/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.4 and GPG
iD8DBQE5dNGKZXLnGT1HLgcRAulxAJ9gX9yFB9HznqpJYfSG0jNpRz/XDgCePUdz
+r9bCshWowPqRx4scV61kko=
=1dHs
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<871z0r2jjp.fsf@eb2ebu.ampr.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8n9bsj.17m.Roger_J@localhost.localdomain>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,936adf4464d584f5 X-Google-Attributes: gidf86c8,public From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org> Subject: Re: obtener la ip asignada de la interfaz ppp0 Date: 2000/07/19 Message-ID: <871z0r2jjp.fsf@eb2ebu.ampr.org> X-Deja-AN: 648315669 Content-Transfer-Encoding: 8bit References: <slrn8n9bsj.17m.Roger_J@localhost.localdomain> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@wanadoo.es X-Trace: m2newsread.uni2.es 964034314 62.36.71.197 (Wed, 19 Jul 2000 21:18:34 MET DST) Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/ MIME-Version: 1.0 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 NNTP-Posting-Date: Wed, 19 Jul 2000 21:18:34 MET DST Newsgroups: es.comp.os.linux.programacion