Oct 27, '03 01:53:00AM • Contributed by: adamjacobmuller
However, the only place that I knew this data was avalible from the command line was in the system_profiler tool; the problem was that this tool collected massive amounts of data and could take (on my PowerBook G4) over 1.5 minutes to run -- this was simply not acceptable. After installing Panther, I found that there were a plethora of options now available to limit the amount of data gathered by the system profiler tool. For example, running this command:
system_profiler SPAirPortDataType|grep -e "Current Wireless Network:"|awk '{print $4}'
printed out the current SSID (tmobile at the moment; I'm sitting in a Starbucks in Manhattan),
and it takes less than one second to find that information from the system. An amazing speed improvement. If the above fails to find the command, you might have to add /usr/sbin/ in front of it (though that directory should be on your path).
I have not written that script that auto-logs into t-mobile, but will sometime in the future. If you have interest in it or wish to help me (testing, developing) post a message following this hint.
