From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 18:55:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6F5C37B401 for ; Mon, 28 Apr 2003 18:55:48 -0700 (PDT) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4232A43FA3 for ; Mon, 28 Apr 2003 18:55:48 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <2003042901554705300f629ne>; Tue, 29 Apr 2003 01:55:47 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h3T1tkPN002860; Mon, 28 Apr 2003 21:55:46 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h3T1tjGG002857; Mon, 28 Apr 2003 21:55:45 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: "DJ Boris" References: <01de01c30dd1$5c5d4c10$6300a8c0@fmelectro.co.za> From: Lowell Gilbert Date: 28 Apr 2003 21:55:45 -0400 In-Reply-To: <01de01c30dd1$5c5d4c10$6300a8c0@fmelectro.co.za> Message-ID: <44u1cikqxq.fsf@be-well.ilk.org> Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions Subject: Re: extract IP address and feed it into a command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 01:55:49 -0000 "DJ Boris" writes: > Is there a command or something else that I can use in order to get only the > IP starting with zzz.zzz up to the first space and how do I feed it into the > above command? If you need to do it when the address changes, use one of the hooks in dhclient-script(8).