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 > Shell Programming and Scripting
.
google unix.com



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

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 10: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 08:59 AM

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 12-05-2001
Splatt Splatt is offline
Registered User
  
 

Join Date: Dec 2001
Location: Chula Vista, CA
Posts: 1
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'.
  #2 (permalink)  
Old 12-05-2001
doeboy's Avatar
doeboy doeboy is offline
Registered User
  
 

Join Date: Oct 2001
Location: Here
Posts: 137
You could try using "ifconfig -a".
  #3 (permalink)  
Old 12-10-2001
lealyz lealyz is offline
Registered User
  
 

Join Date: Dec 2001
Location: Lagos, Nigeria
Posts: 41
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.
Closed Thread

Bookmarks

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 10:15 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