Re: How do you display the IP Address?
Re: How do you display the IP Address?
- Subject: Re: How do you display the IP Address?
- From: Joe <email@hidden>
- Date: Tue, 25 Aug 2009 16:31:04 -0700
At 3:57 PM -0500 8/25/09, email@hidden wrote:
>I am so close to having this work, I think. I'm back with latest version of the "Help Desk Script" and need some input. I added running a shell script command which does return the correct IP address in Terminal or AppleScript if ran by itself. The question is how to I identify the answer and display it with the other values? Thanks for all the great input on this!
For folks behind a router, the IP address can usually be gotten from the router. This is what I use for a 2Wire Gateway router from AT&T using Lynx.
set theurl to "http://homeportal/xslt?PAGE=B01&THISPAGE=A01&NEXTPAGE=B01"
set routerIP to do shell script "/usr/local/bin/lynx -dump " & quoted form of theurl & " | grep -o '[0-9]*\\.[0-9]*\\.[0-9]*\\.[0-9]*' "
Joe
_______________________________________________
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