Re: Get IP
Re: Get IP
- Subject: Re: Get IP
- From: "John W. Baxter" <email@hidden>
- Date: Fri, 24 Oct 2003 14:37:02 -0700
- Envelope-to: email@hidden
On 10/24/2003 13:13, "DigitEL" <email@hidden> wrote:
>
Sorry for the late thread, just figured why unable to post to the
>
list...
>
>
On Tuesday, Oct 21, 2003, at 13:51 America/Vancouver, Ian Ferguson
>
wrote:
>
>
> (do shell script "ifconfig en0 | grep 'inet' | awk '{print $2}'")
>
>
Can someone illuminate why all these shell script calls only work on my
>
machine if set to 'en1'?
>
Using 'en0' brings back a lot of info but does not contain a IP
>
addresses.
If you show us the output from
Ifconfig -a
we'll be able to do more than guess. Do you have two Ethernet interfaces?
Does an Airport card appears as an enX interface, or something else?
If you had 10 ethernet interfaces (we have some machines...not Mac...which
do), then in the Mac (FreeBSD) naming system you would have en0 through en9.
--John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: Get IP (From: DigitEL <email@hidden>) |