DIR Return Create A Forum - Home
---------------------------------------------------------
BotBitsand Nix
HTML https://botsbitsandnix.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: bots bits and chicken lips
*****************************************************
#Post#: 49--------------------------------------------------
my bitcoin monitor script
DIR By: Nixsy
Date: December 7, 2020, 10:43 am
---------------------------------------------------------
This is my bitcoin monitor script, if you do not know how to use
it you don't need it
added 07/12/2020
Do
--- Code ---
cd /home/
--- End Code ---
then
--- Code ---
nano block.sh
--- End Code ---
copy the code below and paste (right click if you use putty) to
the script.
--- Code ---
#!/bin/bash
while true ; do
clear
echo "Press enter to break loop. Script will loop every 3
seconds"
echo "script by Nixsy 18th august 2013"
echo "If loop freezes press CTRL+C"
echo ""
echo -e "
\033[31mdownloaded\e[0m/\033[32mavailable\e[0m"
echo -e " \033[31m"`bitcoin-cli getblockcount
2>&1`"\e[0m"/"\033[32m"`wget -O -
HTML http://blockchain.info/q/getblockcount
2>/dev/null`"\e[0m"
read -t 3 -n 3 && break
done
--- End Code ---
When you have copied the text to nano hold CTRL+X and then press
Y to save.
In terminal type or copy from below followed by the enter key.
--- Code ---
chmod +x block.sh
--- End Code ---
to start the script type.
--- Code ---
./block.sh
--- End Code ---
This is just a little edit of the script from Lohoris, It will
clear the screen then loop the script every 3 seconds until a
key press.
Credit to Lohoris for the original script.
HTML https://bitcoin.stackexchange.com/questions/10859/how-to-check-bitcoind-block-chain-download-progress-level
*****************************************************
Page 1 of 1