mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 20:12:37 +02:00
monitor screen output
This commit is contained in:
1
home.admin/.screenrc
Normal file
1
home.admin/.screenrc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
focusminsize 100 25
|
@@ -96,7 +96,7 @@ while :
|
|||||||
torrentComplete1=$(cat ${sessionDir}/blockchain/*.torrent.rtorrent | grep ':completei1' -c)
|
torrentComplete1=$(cat ${sessionDir}/blockchain/*.torrent.rtorrent | grep ':completei1' -c)
|
||||||
if [ ${torrentComplete1} -eq 0 ]; then
|
if [ ${torrentComplete1} -eq 0 ]; then
|
||||||
screen -S blockchain -X hardcopy .blockchain.out
|
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
|
if [ ${#newScreenDump} -gt 0 ]; then
|
||||||
screenDump1=$newScreenDump
|
screenDump1=$newScreenDump
|
||||||
fi
|
fi
|
||||||
@@ -111,7 +111,7 @@ while :
|
|||||||
torrentComplete2=$(cat ${sessionDir}/update/*.torrent.rtorrent | grep ':completei1' -c)
|
torrentComplete2=$(cat ${sessionDir}/update/*.torrent.rtorrent | grep ':completei1' -c)
|
||||||
if [ ${torrentComplete2} -eq 0 ]; then
|
if [ ${torrentComplete2} -eq 0 ]; then
|
||||||
screen -S update -X hardcopy .update.out
|
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
|
if [ ${#newScreenDump} -gt 0 ]; then
|
||||||
screenDump2=$newScreenDump
|
screenDump2=$newScreenDump
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user