diff options
author | Christian Franke <nobody@nowhere.ws> | 2011-10-09 13:45:42 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2011-10-09 13:45:42 +0200 |
commit | 07f10e528b3d3f89e72682dedade1bdb1f780b54 (patch) | |
tree | 75eb2f15f5bd18fe0eea55c6f1a38ee21919e1d6 | |
parent | 88e6bcc5c778ac4b7e38966d57b28c5ade8223bb (diff) |
Call status bot from status script
-rwxr-xr-x | scripts/pingscript | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/pingscript b/scripts/pingscript index 1424eef..55e0b65 100755 --- a/scripts/pingscript +++ b/scripts/pingscript @@ -21,6 +21,9 @@ insertstatus() { apistatus() { [ -d "${WEBPATH}/public/api" ] || mkdir -p "${WEBPATH}/public/api" + if [ "`cat \"${WEBPATH}/public/api/status\" 2>/dev/null`" != "$1" ]; then + wget -q http://127.0.0.1:8042/send "--post-data=message=sublab status is now: $1" + fi echo $1 > "${WEBPATH}/public/api/status" } |