$ make; phone
$ ifconfig | grep inet | phone
$ ifconfig | grep ether | phone
Add this line to ~/.rtorrent.rc:
system.method.set_key = event.download.finished,notify_me,"execute=/usr/local/bin/phone,--title=rtorrent,--,$d.get_name="
Stick this in /Library/Scripts/login.sh:
#!/bin/bash
/usr/local/bin/phone --username=<username> --secret=<secret> --title="`hostname` login" $1
Then run this:
sudo chmod +x /Library/Scripts/login.sh
sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/login.sh