Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-05-2001
Registered User
 

Join Date: Dec 2001
Location: Chula Vista, CA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question C-shell command to get system IP number?

Is there a C shell command (or script anyone knows of) that will return the IP number of the system? I know that 'hostname' returns the host name, but I need the IP number, and I cannot assume access to 'nslookup'.
Sponsored Links
    #2  
Old 12-05-2001
doeboy's Avatar
Registered User
 

Join Date: Oct 2001
Location: Here
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
You could try using "ifconfig -a".
Sponsored Links
    #3  
Old 12-10-2001
Registered User
 

Join Date: Dec 2001
Location: Lagos, Nigeria
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

ifconfig -a is a command i use on both linux and solaris platforms and it gives me details of my NIC, including IP address.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can I get only the number of the UID from id command? umen UNIX for Dummies Questions & Answers 5 05-09-2006 05:11 AM
shell magic number with a - vino Shell Programming and Scripting 3 07-08-2005 11:23 PM
Limit number of user accessing to SCO UNIX System trinhnguyen UNIX for Dummies Questions & Answers 1 03-09-2005 09:29 AM
AIX Unix.. number of users on system in a particular group afiore UNIX for Advanced & Expert Users 1 06-26-2003 11:19 AM
shell to number and to string xiamin Shell Programming and Scripting 1 11-06-2001 07:59 AM



All times are GMT -4. The time now is 12:38 AM.