LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] getting IP of machine on DHCP

[ILUG] getting IP of machine on DHCP

John McDonnell johnmc at johnmc.org
Wed Dec 20 12:15:21 GMT 2000


got a wee problem here and I can't get to freshmeat[1] to see if there's
anything nice there to help me. 
I have a box here that uses DHCP and being the lazy sod that I am, I want
to work on it from my desk using ssh. Any idea how I'd get the IP address
of this box over to mine every time it boots? 
I had thought of a simple shell script to grep the output of ifconfig eth0
for "inet addr" and parse that output for the IP which would then be
transferred to my machine using scp. The only problem is the parsing.
Any ideas?

[1] cf: ILUG-Social discussion

johnmc.
-- 
 . http:// | johnmc.org      - +353-86-824-9010 (mob) .  
 . mail@   | bucketchild.net - +363-91-58-9930 (home) .
-- 







More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell