From: George Gallen <ggallen () slackinc ! com>
To: tru64-unix-managers
Subject: Summary: How to find "your" IP#
Date: Mon, 14 Dec 1998 18:15:43 +0000 [thread overview]
Message-ID: <96078731111963.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1998-12-14 18:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox