473,320 Members | 2,097 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,320 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 1550
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.