- Thoughts - http://peelle.org -

Lojack my macbook

Posted By Jeremy On 2009-01-25 @ 16:57 In Bash, Apple | 1 Comment

I just got a macbook. The first Macintosh I have owned since my LC III. I decided that I wanted to track where I have been and roughly how long I was online at each place. If for some reason I misplace my mac, I would love to have a way to track it’s last online location. Nothing Fancy.

So I thought up a simple solution to my dilema. Query a web site I have log access to. I used wget to query my homepage, with a little bash magic to generate a useful query string. The “local” time, and [1] IP address of my macbook.

With a little log sifting and a charting module, I can show all kinds of neat statistics.


Article printed from Thoughts: http://peelle.org

URL to article: http://peelle.org/archives/9

URLs in this post:
[1] IP address: http://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script
.html

Click here to print.