From owner-freebsd-questions Wed Jul 31 6: 5:43 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 71A7837B400 for ; Wed, 31 Jul 2002 06:05:40 -0700 (PDT) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id A57A143E42 for ; Wed, 31 Jul 2002 06:05:39 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.5/8.12.5) with ESMTP id g6VD5cOO057851; Wed, 31 Jul 2002 08:05:38 -0500 (CDT) (envelope-from dkelly@grumpy.dyndns.org) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.12.5/8.12.5/Submit) id g6VD5YcD057850; Wed, 31 Jul 2002 08:05:34 -0500 (CDT) Date: Wed, 31 Jul 2002 08:05:34 -0500 From: David Kelly 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: <20020731130534.GD57725@grumpy.dyndns.org> 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.4i 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 On Wed, Jul 31, 2002 at 11:42:54AM -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? This works well in /bin/sh, I don't know how to do the same as simply in csh: echo ${REMOTEHOST:-localhost} -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message