mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
screen dump file
This commit is contained in:
@@ -97,7 +97,7 @@ while :
|
|||||||
echo "Its OK to close terminal now and SSH back in later."
|
echo "Its OK to close terminal now and SSH back in later."
|
||||||
echo "****************************************************"
|
echo "****************************************************"
|
||||||
screen -S ${name} -X hardcopy .${name}.out
|
screen -S ${name} -X hardcopy .${name}.out
|
||||||
newScreenDump=$(cat .Download.out | grep . | tail -8)
|
newScreenDump=$(cat .${name}.out | grep . | tail -8)
|
||||||
if [ ${#newScreenDump} -gt 0 ]; then
|
if [ ${#newScreenDump} -gt 0 ]; then
|
||||||
screenDump=$newScreenDump
|
screenDump=$newScreenDump
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ name="torrent"
|
|||||||
targetDir="/mnt/hdd/torrent"
|
targetDir="/mnt/hdd/torrent"
|
||||||
targetSize=$size
|
targetSize=$size
|
||||||
maxTimeoutLoops=100000
|
maxTimeoutLoops=100000
|
||||||
command="bash -c 'sudo lftp -c \"torrent -O ${targetDir} /home/admin/assets/${torrent}.torrent; bye\"'"
|
#command="bash -c 'sudo lftp -c \"torrent -O ${targetDir} /home/admin/assets/${torrent}.torrent; bye\"'"
|
||||||
|
command="bash -c 'sudo ls'"
|
||||||
|
|
||||||
# starting session if needed
|
# starting session if needed
|
||||||
echo "checking if ${name} has a running screen session"
|
echo "checking if ${name} has a running screen session"
|
||||||
@@ -94,7 +95,7 @@ while :
|
|||||||
echo "Its OK to close terminal now and SSH back in later."
|
echo "Its OK to close terminal now and SSH back in later."
|
||||||
echo "****************************************************"
|
echo "****************************************************"
|
||||||
screen -S ${name} -X hardcopy .${name}.out
|
screen -S ${name} -X hardcopy .${name}.out
|
||||||
newScreenDump=$(cat .Download.out | grep . | tail -8)
|
newScreenDump=$(cat .${name}.out | grep . | tail -8)
|
||||||
if [ ${#newScreenDump} -gt 0 ]; then
|
if [ ${#newScreenDump} -gt 0 ]; then
|
||||||
screenDump=$newScreenDump
|
screenDump=$newScreenDump
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user