Created
October 1, 2016 13:06
-
-
Save sora/f2e869160074bd382bd0cfcd91cab276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST=`hostname` | |
IP_CMD=`/sbin/ip addr show dev eth0 | /bin/grep 'inet '` | |
MSG="${HOST}: ${IP_CMD}" | |
/usr/bin/curl https://docs.google.com/forms/d/{id}/formResponse -d ifq -d entry.836766723="${MSG}" -d submit=Submit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment