IP address

Page principale

Répondre à ce message
Auteur: Dr P Dupre
Date:  
À: Guilde
Sujet: IP address
Bonsoir,

Coment est -ce que je pourrais recuperer l'adresse IP (seulement) d'un
interface.
ifconfig ppp0
me donne inet addr:172.26.2.14 P-t-P:172.26.2.1 Mask:255.255.255.255
Je voudrais recupere uniquement 172.26.2.14

-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Patrick Dupré                                             pd520@???
University of York                                 Department of Chemistry
Heslington, York              YO10 5DD                      United Kingdom
Phone: +44-(0)-1904-434384                        Fax: +44-(0)-1904-432516
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++