Don't steal my Mac
Mac OS X 10.6 comes with CoreLocatation. Which is implemented as a command line program here: http://code.google.com/p/corelocationcli/
So... just "wget --spider "phor.net/ping/fdbook?$(/Users/fulld/Applications/CoreLocationCLI -once)" 2> /dev/null" in your crontab
And put one of these on your server:
<?php
# URL like: http://phor.net/savelocation/fdbook?info
$file = preg_replace('/[^a-z]/', '', $_SERVER['PATH_INFO']);
$info = preg_replace('/#<>/', '', urldecode($_SERVER['QUERY_STRING']));
file_put_contents("cache/ping_$file", $_SERVER['REMOTE_ADDR']."\n$info\n");
touch("cache/ping_$string");
?>
PINGED
RESULT: Computer phones home every few minutes to report it's physical location.
So... just "wget --spider "phor.net/ping/fdbook?$(/Users/fulld/Applications/CoreLocationCLI -once)" 2> /dev/null" in your crontab
And put one of these on your server:
<?php
# URL like: http://phor.net/savelocation/fdbook?info
$file = preg_replace('/[^a-z]/', '', $_SERVER['PATH_INFO']);
$info = preg_replace('/#<>/', '', urldecode($_SERVER['QUERY_STRING']));
file_put_contents("cache/ping_$file", $_SERVER['REMOTE_ADDR']."\n$info\n");
touch("cache/ping_$string");
?>
PINGED
RESULT: Computer phones home every few minutes to report it's physical location.
Comments
Also, I normally make posts like this at http://privacylog.blogspot.com/