From 3e496ced74ec4257ac19dccbc0a731d945ec50b5 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 17 Sep 2018 00:07:59 +0200 Subject: [PATCH] monitor screen output --- home.admin/.screenrc | 1 + home.admin/50torrentHDD.bitcoin.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 home.admin/.screenrc diff --git a/home.admin/.screenrc b/home.admin/.screenrc new file mode 100644 index 0000000..f51ec83 --- /dev/null +++ b/home.admin/.screenrc @@ -0,0 +1 @@ +focusminsize 100 25 \ No newline at end of file diff --git a/home.admin/50torrentHDD.bitcoin.sh b/home.admin/50torrentHDD.bitcoin.sh index 085b230..562a846 100755 --- a/home.admin/50torrentHDD.bitcoin.sh +++ b/home.admin/50torrentHDD.bitcoin.sh @@ -96,7 +96,7 @@ while : torrentComplete1=$(cat ${sessionDir}/blockchain/*.torrent.rtorrent | grep ':completei1' -c) if [ ${torrentComplete1} -eq 0 ]; then screen -S blockchain -X hardcopy .blockchain.out - newScreenDump=$(cat .blockchain.out | head -6 | tail -2 ) + newScreenDump=$(cat .blockchain.out | head -6 | tail -3 ) if [ ${#newScreenDump} -gt 0 ]; then screenDump1=$newScreenDump fi @@ -111,7 +111,7 @@ while : torrentComplete2=$(cat ${sessionDir}/update/*.torrent.rtorrent | grep ':completei1' -c) if [ ${torrentComplete2} -eq 0 ]; then screen -S update -X hardcopy .update.out - newScreenDump=$(cat .update.out| head -6 | tail -2 ) + newScreenDump=$(cat .update.out| head -6 | tail -3 ) if [ ${#newScreenDump} -gt 0 ]; then screenDump2=$newScreenDump fi