![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
||||
|
||||
|
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
-gHoTi
__________________
regards, -ghoti |
| Forum Sponsor | ||
|
|
|
#16
|
|||
|
|||
|
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 |
| Tags |
| export display, linux |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|