|
|
@ -28,7 +28,7 @@ fi |
|
|
|
name="Download" |
|
|
|
targetDir="/mnt/hdd/download/" |
|
|
|
targetSize=$size |
|
|
|
maxTimeoutLoops=10000 |
|
|
|
maxTimeoutLoops=100000 |
|
|
|
command="sudo wget -c -r -P ${targetDir} -q --show-progress ${url}" |
|
|
|
|
|
|
|
# starting session if needed |
|
|
@ -97,7 +97,7 @@ while : |
|
|
|
echo "Its OK to close terminal now and SSH back in later." |
|
|
|
echo "****************************************************" |
|
|
|
screen -S ${name} -X hardcopy .${name}.out |
|
|
|
newScreenDump=$(cat .Download.out | grep . | tail -10) |
|
|
|
newScreenDump=$(cat .Download.out | grep . | tail -8) |
|
|
|
if [ ${#newScreenDump} -gt 0 ]; then |
|
|
|
screenDump=$newScreenDump |
|
|
|
fi |
|
|
|