Computing.Net > Forums > Unix > C shell command to get system IP?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C shell command to get system IP?

Reply to Message Icon

Name: Matt Senecal
Date: December 5, 2001 at 11:45:24 Pacific
Comment:

Is there a C shell command (or script anyone knows of) that will return the IP number of the system? I cannot assume access to 'nslookup'.



Sponsored Link
Ads by Google

Response Number 1
Name: Chuck
Date: December 10, 2001 at 22:16:30 Pacific
Reply:

Matt,

What os are you using? I use TRU64 so I can use netstat with some greping and such or rcmgr get IFCONFIG_0 and awk it out to get what I'm looking for.

Pls respond to my e-mail address and I will help you out.

Chuck


0
Reply to Message Icon

Related Posts

See More


Process size keeps growin... FreeBSD+DSL+inet+connecti...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: C shell command to get system IP?

c-shelll command www.computing.net/answers/unix/cshelll-command/4322.html

C-shell script help www.computing.net/answers/unix/cshell-script-help/6828.html

shell script to get value of field www.computing.net/answers/unix/shell-script-to-get-value-of-field/6716.html