Re: Pulling in Router IP address
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.