Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find IP address of client

Status
Not open for further replies.

Nakis

MIS
Jun 5, 2002
37
CY
Users connect to the F50 server from their PCs, using telnet. I have given each PC a hostname in the /etc/hosts.
I need a command that will identify the IP address of the PC that connected to the server using telnet. I need to have this into the users' .profile. I currently run:
# who -m | cut -f 2 -d\( | cut -f 1 -d\)
I dont want to keep using this because sometimes I have to run .profile in the background and I get the message:
"Do not run who am i as a background process"


thanx a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top