Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2002 13:41:59 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
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>
In-Reply-To: <038d01c238c2$1bd526c0$7d05a8c0@fred>
References:  <038d01c238c2$1bd526c0$7d05a8c0@fred>

next in thread | previous in thread | raw e-mail | index | archive | help
[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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020731041159.GM17787>