Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Retrieve network info from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Retrieve network info from the command line
Authored by: victic on Jun 18, '10 10:35:57AM
Yes, the branch of code written for static address might benefit from a few changes. For example, the way I can retrieve my own IP when it's static is:
ifconfig en0 | grep inet | awk '{print $2}'

[ Reply to This | # ]