The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Changing windows server alias name on windows or unix? NycUnxer UNIX for Dummies Questions & Answers 1 03-26-2008 05:54 PM
No more windows! shep UNIX for Dummies Questions & Answers 2 11-17-2005 07:00 PM
X windows dino_leix Linux 4 06-11-2005 07:51 AM
ftp to windows box here2learn UNIX for Dummies Questions & Answers 5 12-29-2003 02:33 PM
NFS for Windows Optimus_P UNIX for Advanced & Expert Users 4 10-28-2003 01:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-29-2001
[000000] [000000] is offline
Registered User
  
 

Join Date: Aug 2001
Location: UK
Posts: 1
Lightbulb X Windows

Does anyone know how I can solve this Xwindows problem out?

what i'm doing is connecting from my Windows PC to a Unix server. I would like my IP address to be passed to X automaticly so I can run XWindows. So far I'm doing the following.

finger $LOGNAME | grep from | awk '{print $9}'

this displays my IP address's that I have come from in the past
(I have DHCP) Not a static IP Address.

I would then get an output like this
(ip numbers have been changed for X's in this example)

XXX.XXX.58.22
XXX.XXX.67:0.0
XXX.XXX.64:0.0
XXX.XXX.64:0.0
XXX.XXX.64.215:0

My latest IP adderss is always at the bottom. How do I then extract this and output it to a file ?

Once I can do that I can automate the rest in a script:

MYIP=`finger $LOGNAME | grep from | awk '{print $9}' .........`

DISPLAY=MYIP
export DISPLAY
xclock


Thanks in advance
[000000]
  #2 (permalink)  
Old 08-29-2001
DPAI's Avatar
DPAI DPAI is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 112
finger $LOGNAME | grep from | awk '{print $9}' | tail -1


Closed Thread

Bookmarks

Tags
export display

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0