Bluetooth-aware is a project mainly written in C and SHELL, it's free.
These scripts are made to be used with the app "Proximity"
Build the included .c using the build script and place in your path
Find Proximity at http://reduxcomputing.com/proximity.php