an osx hint
I went looking for the Macintosh equivalent of iwconfig today so that I could get a command-line readout of the current wireless signal strength. This is good for sniffing out WiFi reception "sweet spots" in the office, and for tuning antenna positioning on the access point.
Apple hides their airport command line tool at/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airportThere's no manual page, but the --help switch will tell you everything you need to know. :-)
cd /usr/sbinHmmm, what other private frameworks are there?
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
<?php
$iwconfig = '/usr/sbin/airport -I';
while (1) {
$out = `$iwconfig`;
$outa = explode("\n",$out);
// get commQuality
list( $key, $value ) = explode( ':', $outa[0] );
print str_repeat('+',$value)."\n";
usleep(100000);
}
?>
By Chris Snyder on October 31, 2005 at 12:12pm