Reading about networksetup now. Another command to add to my toolbox.
Thanks!

On Thu, Mar 30, 2017 at 12:24 PM, Marc Siskin via use-livecode <
[email protected]> wrote:

> Of the two commands, networksetup would require less parsing of the answer
> in order to get the device/MAC address pairing.
>
> Marc
>
> On Mar 30, 2017, at 2:17 PM, Tiemo Hollmann TB via use-livecode <
> [email protected]<mailto:[email protected]>>
> wrote:
>
> :)  you are right!
>
> So I think I'll manage to replace the old and slow function using
> "netstat" by "ifconfig" as well as by "networksetup"
> I have no idea, why the external programmer choose "netstat" at that time
> (2009). Does anybody see any pitfalls, why "ifconfig" or "networksetup"
> could return other results (after filtering, sorting etc.) or why I
> shouldn't use one of them? Are these commands the same available as netstat
> in modern Oss (> 10.9)? networksetup seems to be the easiest solution and
> is fast as ifconfig.
>
> Thanks for any advice
> Tiemo
>
> -----Ursprüngliche Nachricht-----
> Von: use-livecode [mailto:[email protected]] Im
> Auftrag von Mike Bonner via use-livecode
> Gesendet: Donnerstag, 30. März 2017 20:02
> An: How to use LiveCode <[email protected]<mailto:
> [email protected]>>
> Cc: Mike Bonner <[email protected]<mailto:[email protected]>>
> Betreff: Re: shell("netstat -i") has getting slow on MacOS10.x
>
> If you call it with no arguments, doesn't it list them all?  I'll have to
> get my mac running again so I can test this stuff.
>
> On Thu, Mar 30, 2017 at 11:52 AM, Tiemo Hollmann TB via use-livecode <
> [email protected]<mailto:[email protected]>>
> wrote:
>
> Yes, using ifconfig <interface> I get exact 1 MAC (see Ken Rays script
> as Klaus pointed out). I don't see a parameter to get all at once, but
> I could perhaps call ifconfig 4 times with <interface> lo0, en0,en1
> and fw0. Or I will try to use "networksetup -listallhardwareports”, as
> Marc pointed out Don't ask me why I need exactly these 4 interfaces.
> The old function, working with netstat is made by an external
> programmer and I have to get exact the same results as the old
> function has provided, so I need these 4 interfaces.
> Tiemo
>
> -----Ursprüngliche Nachricht-----
> Von: use-livecode [mailto:[email protected]] Im
> Auftrag von Bob Sneidar via use-livecode
> Gesendet: Donnerstag, 30. März 2017 18:52
> An: How to use LiveCode <[email protected]<mailto:
> [email protected]>>
> Cc: Bob Sneidar <[email protected]<mailto:bobsneidar@
> iotecdigital.com>>
> Betreff: Re: shell("netstat -i") has getting slow on MacOS10.x
>
> That works great for the default adapter. I think Tiemo is looking for
> a way to enumerate ALL adapter mac addresses. I have like 24 entries
> using netstat. Some are ipv6 addresses, others ipv4, and still others
> have no mac address at all. Of course I am using Parallels and have 2
> physical network adapters and a couple virtual ones.
>
> Bob S
>
>
> On Mar 30, 2017, at 09:06 , Klaus major-k via use-livecode
> <[email protected]<mailto:[email protected]>>
> wrote:
>
> using this script from Ken Ray:
> <http://www.sonsothunder.com/devres/livecode/tips/env001.htm>
> took 30 millisecs on my Mac Mini, macOS 10.12.4 and LC 9 dp6.  :-)
>
> Tiemo
>
> Best
>
> Klaus
>
> --
> Klaus Major
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]<mailto:[email protected]>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> [email protected]<mailto:[email protected]>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ---------------
> Marc Siskin
> Manager, Modern Language Resource Center
> Carnegie Mellon University
> [email protected]<mailto:[email protected]>
>
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to