Hi,
assuming that a host has only one active (LAN-)interface is there a command
to query its name?
Thanks, Helmut
--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn
Printable View
Hi,
assuming that a host has only one active (LAN-)interface is there a command
to query its name?
Thanks, Helmut
--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn
On Mon, 27 Oct 2008 22:07:13 UTC, "Helmut Schneider" <jumper99@gmx.de>
wrote:
[color=blue]
> assuming that a host has only one active (LAN-)interface is there a command
> to query its name?[/color]
ifconfig -a, but you might need to parse that if you want to extract the
name. You'll get the loopback interface too.
--
Bob Eager
UNIX since v6..
[url]http://tinyurl.com/2xqr6h[/url]
Bob Eager <rde42@spamcop.net> wrote:[color=blue]
> On Mon, 27 Oct 2008 22:07:13 UTC, "Helmut Schneider" <jumper99@gmx.de>
> wrote:
>[color=green]
>> assuming that a host has only one active (LAN-)interface is there a
>> command to query its name?[/color]
>
> ifconfig -a, but you might need to parse that if you want to extract the
> name. You'll get the loopback interface too.[/color]
Well...yes...but... :)
I thought about a single command showing a single line. No grep, awk,
whatever...
--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn
Bob Eager <rde42@spamcop.net> wrote:[color=blue]
> On Mon, 27 Oct 2008 22:07:13 UTC, "Helmut Schneider" <jumper99@gmx.de>
> wrote:
>[color=green]
>> assuming that a host has only one active (LAN-)interface is there a
>> command to query its name?[/color]
>
> ifconfig -a, but you might need to parse that if you want to extract the
> name. You'll get the loopback interface too.[/color]
Well...yes...but... :)
I thought of a single command showing a single line. No grep, awk,
whatever...
--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn