From c06271d8c370e2a8374138f8b382fbdc36654a2d Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Wed, 27 Jun 2018 23:49:51 -0700 Subject: [PATCH] Dynamic hostname and fix binary name --- bin/verus-telegram-notify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/verus-telegram-notify b/bin/verus-telegram-notify index cfefb4e..a68a5e8 100755 --- a/bin/verus-telegram-notify +++ b/bin/verus-telegram-notify @@ -2,5 +2,5 @@ cd $HOME/git/veruscoin/src PROCS=$(./fiat/verus getmininginfo | grep genproclimit | cut -d: -f2|sed 's/,//g') -MSG=$(./fiat/verus getlocalsolps | awk -v THREADS="$PROCS" '{ print "loki: " $1 / (1000*1000) " MH/s with " THREADS " threads" }') -echo $MSG | ~/bin/telegram_send --stdin +MSG=$(./fiat/verus getlocalsolps | awk -v THREADS="$PROCS" -v HOST="$HOSTNAME" '{ print HOST ": " $1 / (1000*1000) " MH/s with " THREADS " threads" }') +echo $MSG | telegram-send --stdin