Skip to content

Commit

Permalink
use 'sed' filter on piped status prints
Browse files Browse the repository at this point in the history
To greatly reduce length of time status boxes are empty in interface when device on high CPU load.
sed filter removes printing of monero version for every status box
  • Loading branch information
shermand100 committed Nov 1, 2019
1 parent 7b21723 commit 76be267
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion home/pinodexmr/TXPool-short-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ DEVICE_IP="$(hostname -I)"
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Node MemPool status
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pool_sh > /var/www/html/TXPool-short_Status.txt
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pool_sh | sed '1d' > /var/www/html/TXPool-short_Status.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/TXPool-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ DEVICE_IP="$(hostname -I)"
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Node MemPool status
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pool_stats > /var/www/html/TXPool_Status.txt
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pool_stats | sed '1d' > /var/www/html/TXPool_Status.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/TXPool-verbose-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ DEVICE_IP="$(hostname -I)"
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Node MemPool status
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pool > /var/www/html/TXPool-verbose_Status.txt
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pool | sed '1d' > /var/www/html/TXPool-verbose_Status.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/monero-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ DEVICE_IP="$(hostname -I)"
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Node Status
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled status > /var/www/html/Node_Status.txt
./monero/monerod --rpc-bind-ip=$DEVICE_IP --rpc-bind-port=$MONERO_PORT --rpc-login=$RPCu:$RPCp --rpc-ssl disabled status | sed -n '/Height:/p' > /var/www/html/Node_Status.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/node_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Node Version Print
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login=$RPCu:$RPCp --rpc-ssl disabled version > /var/www/html/node_version.txt
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login=$RPCu:$RPCp --rpc-ssl disabled version | sed '1d' > /var/www/html/node_version.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/print_cn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Connected Peers info
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login $RPCu:$RPCp --rpc-ssl disabled print_cn > /var/www/html/print_cn.txt
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login $RPCu:$RPCp --rpc-ssl disabled print_cn | sed '1d' > /var/www/html/print_cn.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/print_pl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Print all white/grey nodes
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login $RPCu:$RPCp --rpc-ssl disabled print_pl > /var/www/html/print_pl.txt
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login $RPCu:$RPCp --rpc-ssl disabled print_pl | sed '1d' > /var/www/html/print_pl.txt
2 changes: 1 addition & 1 deletion home/pinodexmr/print_pl_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#Import RPC password
. /home/pinodexmr/RPCp.sh
#Print PL_STATS white vs grey nodes
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pl_stats > /var/www/html/print_pl_stats.txt
./monero/monerod --rpc-bind-ip=$(hostname -I) --rpc-login=$RPCu:$RPCp --rpc-ssl disabled print_pl_stats | sed '1d' > /var/www/html/print_pl_stats.txt

0 comments on commit 76be267

Please sign in to comment.