• 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
Router's IP address - how to grep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Router's IP address - how to grep


  • Subject: Router's IP address - how to grep
  • From: Joe <email@hidden>
  • Date: Thu, 15 May 2008 13:01:41 -0700

I know there are web pages and widgets to get a router's IP, but I thought I would try a local solution with lynx.

set theurl to "http://homeportal/xslt? PAGE=B01&THISPAGE=A01&NEXTPAGE=B01"
set BBandInfo to do shell script ("/usr/local/bin/lynx -dump " & theurl & "")


That returns a whole page with a line about midway down containing the words "Internet Address:"

So, I tried various combinations of this:

set BBandInfo to do shell script ("cd /usr/local/bin; ./lynx -dump " & theurl & " | grep \"Internet Address:\"")

and that gives a long error message that extends off the monitor.

I don't know much about shell or grep but I'm trying to learn. Any help appreciated.

Joe

--------------------------
say "[[inpt PHON]]lAYf%IHsEY[[inpt TEXT]] gas, [[inpt PHON]]@[[inpt TEXT]]aich [[inpt TEXT]]too[[inpt PHON]]%[[inpt TEXT]]ess." using "Kathy"


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Router's IP address - how to grep
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: RE: Find duplicate numbers and replace
  • Next by Date: Re: Router's IP address - how to grep
  • Previous by thread: Send email at set time
  • Next by thread: Re: Router's IP address - how to grep
  • Index(es):
    • Date
    • Thread