473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

shell scripting

77
does any1 know how to shell script to display following information on unix

IP address
Subnet mask
Network Interface Card physical address
The current status of the NIC.
Details held in the /etc/hosts
Is the machine able to connect to (i.e. ping) a specified list of IP addresses stored in a configuration file.
Mar 27 '07 #1
4 1552
sicarie
4,677 Expert Mod 4TB
does any1 know how to shell script to display following information on unix

IP address
Subnet mask
Network Interface Card physical address
The current status of the NIC.
ifconfig
Details held in the /etc/hosts
Is the machine able to connect to (i.e. ping) a specified list of IP addresses stored in a configuration file.
You have the second of those, and there are about 50 ways to do the /etc/hosts - are these homework problems?
Mar 28 '07 #2
Mubs
77
ifconfig


You have the second of those, and there are about 50 ways to do the /etc/hosts - are these homework problems?

not homework problems...just some data i need for some database work..
Mar 28 '07 #3
sicarie
4,677 Expert Mod 4TB
not homework problems...just some data i need for some database work..
Well, you could cat etc/hosts or view it in your favorite editor (though you have to be sure you don't change it if you do).
Mar 28 '07 #4
zuberk
2
not homework problems...just some data i need for some database work..
HELLO MUBS stop lying this is assignment work and why would you want to use this information for database use lol ur a great liar my friend and stop posting ur assignment aswell get ur assignement done lad
Apr 7 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Oliver Gräser | last post by:
Hej, I want to run batchfiles via the Shell, but accessible in the Browser via IIS. Actually, I'd like the server to start a command line ntbackup if a users selects to do so on an ASP in his...
19
by: DW | last post by:
Hi, all... I have a sizeable database running under Oracle 9.2.0.4 under AIX 5.2.0. I am faced with an impending move to a Windows environment, running under SQL 2000. Currently, we are...
2
by: rcmail14872 | last post by:
I have seen some very general suggestions for alternative code to the WScript.Shell code, but nothing specific. In the two lines of code below (I think) the first line creates a text file on the...
5
by: Javaman59 | last post by:
Hi all, I'm a Unix guy from way back, who's enjoying learning C# and Windows programming. Overall, it's not such a difficult transition (as long as one keeps an open mind :) ), but there is one...
10
by: A.M | last post by:
Hi, I am having difficulty with shell scripting in Python. I use the following command to run a DOS command and put the return value in a Python variable:
6
by: Sanket80 | last post by:
Hi, I have one shell script which runs a report and sends the output to user. The shell script has some queries written in it in SQL and hence when I execute a shell script via a concurrent...
7
by: Frank Potter | last post by:
I learned some python in windows. And now I've turned to linux. I read a book and it teaches how to write shell script with bash, but I don't feel like the grammar of bash. Since I know about...
14
keyvanrahmadi
by: keyvanrahmadi | last post by:
Sorry if this post is rather long but hopefully you wont get bored half way through. I have a project in hand which i have started and have a deadline of 1 week. Basically what i need to do is to...
1
by: chewie54 | last post by:
Is there an python example that shows how to include a python shell in a wxPython application. I have looked the wxPython demo but I was wondering if there are any others that might be helpful...
0
by: Tony | last post by:
I'm trying to call the shell on a shared server using IIS 6. 'I create the shell object as such: oShell = Server.CreateObject("Wscript.Shell") Now, I'm trying nice some simple test scripts...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.