From owner-freebsd-questions Tue Jul 30 21:12: 6 2002 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 44A5937B400 for ; Tue, 30 Jul 2002 21:12:04 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B20B43E31 for ; Tue, 30 Jul 2002 21:12:02 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id E834A81068; Wed, 31 Jul 2002 13:41:59 +0930 (CST) Date: Wed, 31 Jul 2002 13:41:59 +0930 From: Greg 'groggy' Lehey To: fred@timogen.com Cc: freebsd-questions@freebsd.org Subject: Re: Good script to get the IP address from u logon on freebsd Message-ID: <20020731041159.GM17787@wantadilla.lemis.com> References: <038d01c238c2$1bd526c0$7d05a8c0@fred> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <038d01c238c2$1bd526c0$7d05a8c0@fred> User-Agent: Mutt/1.3.99i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] Message on a single line. On Wednesday, 31 July 2002 at 11:42:54 -0700, fred@timogen.com wrote: > Hi, > > I have a freebsd box, Can someone execute a scripts to print the > IPAddress where she is from when he logon this machine? Try w(1): === grog@freefall (/dev/ttypi) ~ 1 -> w 9:09PM up 34 days, 18:13, 25 users, load averages: 0.04, 0.31, 0.34 USER TTY FROM LOGIN@ IDLE WHAT dd p1 spike-gw.trit.or 21Jul02 2days -tcsh (tcsh) jake p3 k6.locore.ca 3:39PM 4:59 -bash (bash) fanf p5 cyan.csi.cam.ac. Fri05AM 8:27 bash grog pi wantadilla.lemis 9:09PM - w mckusick pj chez.mckusick.co 16Jul02 13days -csh (csh) Is that what you mean? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message