26 mar 2010 @ 11:03 PM 

Ho creato uno script molto semplice per ricavare l’ip della eth0.
Mi serviva per il bind del JBoss, in uno script che doveva essere eseguito su diverse macchine, di cui ovviamente non potevo conoscere a priori l’ip.
Il semplice script

ifconfig | grep ‘inet addr:’| grep -v ’127.0.0.1′ |
cut -d: -f2 | awk ‘{ print $1}’

Posted By: marco
Last Edit: 26 mar 2010 @ 11:03 PM

EmailPermalink
Tags
Tags: ,
Categories: Linux


 

Responses to this post » (None)

 
Post a Comment

You must be logged in to post a comment.


 Last 50 Posts
 Back
Change Theme...
  • Users » 603
  • Posts/Pages » 373
  • Comments » 81
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Chi Sono?



    No Child Pages.

Consulenze



    No Child Pages.

Note Legali



    No Child Pages.

CV



    No Child Pages.