![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scripting question | moe2266 | Shell Programming and Scripting | 1 | 08-01-2007 10:21 PM |
| scripting question? | justinburbridge | Shell Programming and Scripting | 2 | 04-19-2006 08:58 AM |
| scripting question | batmike | Shell Programming and Scripting | 3 | 11-26-2002 01:58 PM |
| Scripting Question | damielle | Shell Programming and Scripting | 1 | 12-06-2001 02:13 PM |
| another scripting question | kristy | UNIX for Dummies Questions & Answers | 1 | 05-07-2001 09:02 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have to use bash to get system information like IP address and the operating system being used, does anybody know how to do this?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Check
uname nslookup Bye |
|
#3
|
|||
|
|||
|
Hey, i am a newbie to unix scripting, do i just enter this code to get the info or is there more needed, all i know so far is using awk and grep to find the line of the information and just displaying that line, do u know a simple script to show this in use?
|
|
#4
|
||||
|
||||
|
EX:
Code:
$ uname HP-UX $ uname -n node_name $ nslookup $(uname -n) Using /etc/hosts on: node_name looking up FILES Name: node_name.domain.es Address: 0.0.0.0 Aliases: node_name |
|
#5
|
|||
|
|||
|
for some reason i can not view any code in the code boxes at all in this forum, is there another way that you could show your code to me, i.e. dont post it as code or via e-mail?
|
|
#6
|
||||
|
||||
|
And now?
$ uname HP-UX $ uname -n node_name $ nslookup $(uname -n) Using /etc/hosts on: node_name looking up FILES Name: node_name.domain.es Address: 0.0.0.0 Aliases: node_name |
|
#7
|
|||
|
|||
|
thank you for that, i can now read it, but which part of it would give you the ip address information? like i said i am new to this so my questions may appear to be a bit stupid but i am just trying to understand it
|
|||
| Google The UNIX and Linux Forums |