Browse Source

higher ftp timeout

#146
rootzoll 6 years ago
parent
commit
be05870b9b
  1. 4
      home.admin/50downloadHDD.sh

4
home.admin/50downloadHDD.sh

@ -28,7 +28,7 @@ fi
name="Download" name="Download"
targetDir="/mnt/hdd/download/" targetDir="/mnt/hdd/download/"
targetSize=$size targetSize=$size
maxTimeoutLoops=10000 maxTimeoutLoops=100000
command="sudo wget -c -r -P ${targetDir} -q --show-progress ${url}" command="sudo wget -c -r -P ${targetDir} -q --show-progress ${url}"
# starting session if needed # starting session if needed
@ -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 -10) newScreenDump=$(cat .Download.out | grep . | tail -8)
if [ ${#newScreenDump} -gt 0 ]; then if [ ${#newScreenDump} -gt 0 ]; then
screenDump=$newScreenDump screenDump=$newScreenDump
fi fi

Loading…
Cancel
Save