X-Spam-Check-By: sourceware.org Date: Wed, 4 Jan 2006 12:56:04 +0100 (CET) Message-ID: <14935490.1136375764369.JavaMail.adm-moff@moffice11.nsc.no> From: "Peter J. Acklam" To: Subject: Re: Utility to get IP address of the machine Cc: In-Reply-To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10592_16785092.1136375763344" References: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ------=_Part_10592_16785092.1136375763344 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Herb Martin wrote: > While it is almost always more useful to use "Ipconfig > /all" when working interactively, when one just wants the > IP addresses just using plain "ipconfig" gets them without > so much noise to parse through. Or perl -MSocket -MSys::Hostname -wle \ 'print inet_ntoa(scalar gethostbyname(hostname || "localhost"))' Peter ------=_Part_10592_16785092.1136375763344 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_Part_10592_16785092.1136375763344--