Skip to content

Instantly share code, notes, and snippets.

@sora
Created October 1, 2016 13:06
Show Gist options
  • Save sora/f2e869160074bd382bd0cfcd91cab276 to your computer and use it in GitHub Desktop.
Save sora/f2e869160074bd382bd0cfcd91cab276 to your computer and use it in GitHub Desktop.
#!/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