Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Improved script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Improved script
Authored by: thrig on Feb 18, '05 12:40:37PM

SERVICE_GUID=`cat <<EOF | scutil | grep PrimaryService | awk '{print $3}'
open
get State:/Network/Global/IPv4
d.show
EOF`

SERVICE_NAME=`cat <<EOF | scutil | grep "UserDefinedName" | \  awk -F': ' '{print $2}'
open
get Setup:/Network/Service/$SERVICE_GUID
d.show
EOF`

echo $SERVICE_GUID $SERVICE_NAME


[ Reply to This | # ]
Improved script possible bug!
Authored by: thrig on Feb 18, '05 12:42:36PM
grep "UserDefinedName" | \  awk

Was supposed to be on two lines, so you might need to remove the backslash.



[ Reply to This | # ]