shell scripting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mubs
    New Member
    • Mar 2007
    • 77

    shell scripting

    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.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by Mubs
    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?

    Comment

    • Mubs
      New Member
      • Mar 2007
      • 77

      #3
      Originally posted by sicarie
      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..

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by Mubs
        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).

        Comment

        • zuberk
          New Member
          • Apr 2007
          • 2

          #5
          Originally posted by Mubs
          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

          Comment

          Working...