Created
December 21, 2016 10:26
-
-
Save severak/deba57f0d9bb124fde76d9c3985e39ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
machine='debian.ll' | |
status='up' | |
# get ip | |
ip=`ip route get 1 | awk '{print $NF;exit}'` | |
# announce it | |
wget -qO- "http://status.svita.cz/ann.php?machine=${machine}&status=${status}&ip=${ip}" &> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment