The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Six Twitter clients for the Linux desktop and one for the road iBot UNIX and Linux RSS News 0 04-29-2008 01:30 PM
login in red hat linux asutoshch Linux 3 04-02-2008 11:45 PM
Linux clients for three top P2P networks iBot UNIX and Linux RSS News 0 03-20-2008 01:40 AM
how to find out unix server details thopputhurai Filesystems, Disks and Memory 4 04-23-2007 03:16 AM
Map Drive from UNIX Server to Windows Clients kafaween UNIX for Dummies Questions & Answers 3 09-12-2006 07:37 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 09-18-2001
ghoti's Avatar
Registered User
 

Join Date: Jul 2001
Location: Wales
Posts: 55
In case it is of any use to you, I have had a go on a solaris machine at work, and I came up with a rough version of an equivelant that should work for you on Solaris. I have run this on a Solaris box with success, so hopefully this will work.

Code:
NAME=`who am i | awk '{ print $1 }'`
#get NAME of person logged in

HOSTS=`finger -sfw $NAME | awk '{ print $5 }'`
#finger NAME to get name of users machine

IP=`/usr/sbin/ping -sn $HOSTS 1 1 | grep from | awk '{ print $4 }'`
#ping users machine once with 1 byte to get IP address back
#As I do not have control of what is installed on this machine
#I was limited to the commands I could use....

echo $IP
I hope this is of some help?
-gHoTi
__________________
regards,

-ghoti
Forum Sponsor
  #16  
Old 09-19-2001
Registered User
 

Join Date: Sep 2001
Location: CHENNAI, INDIA
Posts: 15
Smile

thanks yaar.

Ill try it out and let u know if i come across any problem.
__________________
K a n d a n
Google The UNIX and Linux Forums
Closed Thread

Tags
export display, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0