Getting IP in a script

Alan Dayley adayley@adtron.com
Tue, 13 Mar 2001 10:25:14 -0700


I have a linux box with multiple NICs.  It uses DHCP to get it's IP address
for one of the network connections.  I would like a script (perl preferred,
other fine) that will get the IP address assigned to a specific NIC.  I
can't seem to find the answer online anywhere...

Alan

/------------------------------------------
|Alan Dayley             www.adtron.com
|Software Engineer       602-735-0300 x331
|ADayley@adtron.com
|
|Adtron Corporation         
|3710 E. University Drive, Suite 5
|Phoenix, AZ  85034
\-------------------------------------------