tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary:  How to find "your" IP#
@ 1998-12-14 18:15 George Gallen
  0 siblings, 0 replies; only message in thread
From: George Gallen @ 1998-12-14 18:15 UTC (permalink / raw)
  To: tru64-unix-managers

There were a varied degree of suggestions.

1. who -mM      <-- Which basicially what I was looking for
2. Use the finger command then parse out the IP
   (this is easier if a human is looking at the data, but was tough
    to extract from - this was my first method before using "w")
3. w | grep $TTY | paste -s - | awk '{print $3}'
   (basically like what I was doing...but required defining the
   $TTY varible with the last two characters of `tty`

The majority of the replys however would be useful if I were attempting
to find the IP of the Host machine, not the client, involving..

using ifconfig, ping and parsing out the rc.config file.

Thank you to all who replied.

George Gallen
ggallen@slackinc.com

-----Original Message-----
From: George Gallen [mailto:ggallen@slackinc.com]
Sent: Friday, December 11, 1998 2:49 PM
To: 'alpha-osf-managers@ornl.gov'
Subject: How to find "your" IP#


Is there a command to display your IP#, as is displayed when you
do a "w"?

Right now, I do a 'w user' and parse out the line with the same tty
then pull the IP#, it's a pain.

George Gallen
ggallen@slackinc.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-14 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-14 18:15 Summary: How to find "your" IP# George Gallen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox