• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pulling in Router IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pulling in Router IP address


  • Subject: Re: Pulling in Router IP address
  • From: Chris Janton <email@hidden>
  • Date: Fri, 11 Oct 2002 09:15:04 -0700

This is probably more of a unix-command question, but:

Does anyone know the call to retrieve the user's DHCP "Router" IP address
into an AppleScript variable? I thought it would be a grep of "ifconfig",
but I don't see the router IP address listed in there.

Try this and see what you get

do shell script "netstat -r -n | grep default | awk '{print $2}'" -- get number
do shell script "netstat -r | grep default | awk '{print $2}'" -- get name

8)
_______________________________________________
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.

  • Prev by Date: Re: Calling a non-scriptable application
  • Next by Date: [OT] Re: About Mail and Shared Menus Protocol
  • Previous by thread: Pulling in Router IP address
  • Next by thread: [OT] Re: About Mail and Shared Menus Protocol
  • Index(es):
    • Date
    • Thread