On Tue, Dec 02, 2003 at 05:05:06PM -0500, Michael A. Smith wrote:
> Is there an easy way to get the IP address that DHCP has assigned to an
> interface?
ifconfig fxp0 | grep 'inet ' | cut -f 2 -d ' '
hth,
toni
--
Kann man etwas nicht verstehen, dann urteile man | toni at stderror dot at
lieber
"Michael A. Smith" <[EMAIL PROTECTED]> writes:
> Is there an easy way to get the IP address that DHCP has assigned to
> an interface?
>
> I know I can do it the hard way -- parsing the results of ifconfig
> with regular expressions -- but I suspect there's a much easier way.
For most purposes, t
Is there an easy way to get the IP address that DHCP has assigned to an
interface?
I know I can do it the hard way -- parsing the results of ifconfig with
regular expressions -- but I suspect there's a much easier way.
--
Michael A. Smith <[EMAIL PROTECTED]>
Programmer at Large