Browse Source

Dynamic hostname and fix binary name

master
Duke Leto 6 years ago
parent
commit
c06271d8c3
  1. 4
      bin/verus-telegram-notify

4
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

Loading…
Cancel
Save