/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash MYIP=`curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.\.]*\).*/\1/g'` echo $MYIP | pbcopy /usr/local/bin/growlnotify 'IP address copied' -m "Address was: $MYIP"
URL: http://hints.macworld.com/article.php?story=20110113070834584
Comments
