From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078731111963.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Mon, 14 Dec 1998 18:15:43 +0000 To: tru64-unix-managers Subject: Summary: How to find "your" IP# X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078731111963 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