FritzLoad gestartet 06.07.2011 20:09:03: ./fritzload.sh 1 -pl-DEBUG /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ dl_job_file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ accountType=premium
+ [ /var/media/ftp/My_Passport/Downloads/ = default ]
+ _debug Pruefung 1: targetdir:
+ [ 1 = 1 ]
+ echo === DEBUG: Pruefung 1: targetdir:
=== DEBUG: Pruefung 1: targetdir:
+ _debug Pruefung 1: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
+ [ 1 = 1 ]
+ echo === DEBUG: Pruefung 1: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
=== DEBUG: Pruefung 1: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
+ [ -z ]
+ targetdir=/var/media/ftp/My_Passport/Downloads/
+ _debug Pruefung 2: targetdir: /var/media/ftp/My_Passport/Downloads/
+ [ 1 = 1 ]
+ echo === DEBUG: Pruefung 2: targetdir: /var/media/ftp/My_Passport/Downloads/
=== DEBUG: Pruefung 2: targetdir: /var/media/ftp/My_Passport/Downloads/
+ _debug Pruefung 2: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
+ [ 1 = 1 ]
+ echo === DEBUG: Pruefung 2: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
=== DEBUG: Pruefung 2: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
+ [ 0 = 1 ]
+ _debug Pruefung 3: targetdir: /var/media/ftp/My_Passport/Downloads/
+ [ 1 = 1 ]
+ echo === DEBUG: Pruefung 3: targetdir: /var/media/ftp/My_Passport/Downloads/
=== DEBUG: Pruefung 3: targetdir: /var/media/ftp/My_Passport/Downloads/
+ _debug Pruefung 3: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
+ [ 1 = 1 ]
+ echo === DEBUG: Pruefung 3: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
=== DEBUG: Pruefung 3: targetdirDOWNLOAD: /var/media/ftp/My_Passport/Downloads/
+ targetdir=/var/media/ftp/My_Passport/Downloads
+ [ -e /var/media/ftp/My_Passport/Downloads ]
+ rm -f /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/signal.stop1.dl /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/signal.restart1.dl /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/reconnect1.*
+ local usedHosterList=
+ echo -n /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ sed -e s,.*\(https\?\|ftp\)://.*,,
+ [ -n /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt ]
+ [ -f /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt ]
+ true
+ isEmpty /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ lock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 6503 /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ grep -c . /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ [ 1 = 0 ]
+ unlock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 1
+ nextHosterEntry /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt line=
+ usedHosterList=
+ nextLine /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ lock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 6503 /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ correctFile /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt unlock=0
+ grep -c \r /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ [ 1 != 0 ]
+ alreadyLocked /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_jobs1.txt.lock ]
+ ls -l /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ [ 6503 = 6503 ]
+ return 0
+ tr -d \r\t
+ mv /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt.tmp /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ [ 0 = 1 ]
+ sed -e 1!d /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ unlock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ matchedLine=http://rapidshare.com/files/447152566/xxxx.rar
+ matchedLineStore=http://rapidshare.com/files/447152566/xxxx.rar
+ skip=0
+ sed -n s/^[ \ ]*@\(.*\)/\1/p;s/[ \ ]*$//+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ passwd=
+ [ -n ]
+ [ -z http://rapidshare.com/files/447152566/xxxx.rar -o -z http://rapidshare.com/files/447152566/xxxx.rar ]
+ sed /^[ \ ]*#.*/d
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ [ -z http://rapidshare.com/files/447152566/xxxx.rar ]
+ [ 0 = 1 ]
+ [ 0 = 1 ]
+ local loopDownload=0
+ [ -z http://rapidshare.com/files/447152566/xxxx.rar ]
+ oneclickhoster http://rapidshare.com/files/447152566/xxxx.rar premium
+ url_string http://rapidshare.com/files/447152566/xxxx.rar
+ tr -s /
+ sed -e s,^[ \ R]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];\)\?[ \ ]*\([^ ;]*\)[ \ ]*\(;.*\)\?$,\2,;\
s,\ *$,,;\
s,.*\(https\?\|ftp\)://,\1://,I;\
s/%3F/?/
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ sed -e s,\(https\?\|ftp\):/,\1://,
+ local param=http://rapidshare.com/files/447152566/xxxx.rar param2file=
+ tr -d \n\r\t
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ [ -z http://rapidshare.com/files/447152566/xxxx.rar ]
+ [ 0 = 1 ]
+ date +%d.%m.%y-%H:%M
+ matchedLineStore=06.07.11-20:09; http://rapidshare.com/files/447152566/xxxx.rar
+ local switchPremium=premium
+ [ premium = free -a 0 = 1 ]
+ local premium=premium
+ sed -e s,\(http://\)rs[0-9a-z]*_\(rapidshare.com.*\),\1\2, -e s,^https\?://\(www.\)*\([^/]*\).*,\2, -e s,2shared_com,twoshared_com, -e s,4shared_com,fourshared_com, -e s,http://anonym.to/?,, -e s,http://dontknow.me/at/?,, -e s,http://dontknowme.at/?,,
+ tr A-Z\-\. a-z__
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ hoster_main=rapidshare_com
+ hoster_plugin=/var/media/ftp/My_Passport/FritzLoad/bin/../lib/hoster/rapidshare_com.sh
+ [ -n rapidshare_com -a -f /var/media/ftp/My_Passport/FritzLoad/bin/../lib/hoster/rapidshare_com.sh ]
+ hoster rapidshare_com premium
+ local host=rapidshare_com wishedAccountType=premium try=0 success=0 reconnected=0
+ local accountType=premium
+ [ premium = premium ]
+ [ 0 = 1 ]
+ [ 0 = 1 ]
+ [ rapidshare_com != normaldownload ]
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ sed -n s,.*\(https\?://[^/]*\).*,\1,p
+ local http=http://rapidshare.com
+ [ -n http://rapidshare.com ]
+ [ -z ]
+ usedHosterList=http://rapidshare.com
+ echo -e ### rapidshare_com-premium: http://rapidshare.com/files/447152566/xxxx.rar
### rapidshare_com-premium: http://rapidshare.com/files/447152566/xxxx.rar
+ waitPing
+ print Warte auf Internetverbindung...
+ curl_msg_update
+ messageCount=1
+ [ 1 -ge 100 ]
+ echo -n 1
+ date +%H:%M:%S
+ echo 20:09:05 Warte auf Internetverbindung...
20:09:05 Warte auf Internetverbindung...
+ [ 0 = 0 ]
+ return
+ [ 0 = 0 ]
+ curl_msg Warte auf Internetverbindung...
+ local message=Warte auf Internetverbindung... type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n Warte auf Internetverbindung...
+ ping -c 1 google.com
+ [ 0 = 0 ]
+ unrarFileBaseChanged
+ unrarFileBase
+ local file=
+ echo -n
+ sed -n s/\.[pP][aA][rR][tT][0-9]*\.[rR][aA][rR]$//p
+ base=
+ [ -z ]
+ sed -n s/\.[rR][aA0-9][rR0-9][0-9]*$//p
+ echo -n
+ base=
+ echo
+ local file= base=
+ [ -n ]
+ return 1
+ curl_msg_update
+ messageCount=2
+ [ 2 -ge 100 ]
+ echo -n 2
+ filename=http://rapidshare.com/files/447152566/xxxx.rar
+ rapidshare_com premium
+ local accountType=premium
+ local mirrors= isOnline= name= size= waitDownload= filename link
+ local waited=0 waitMaxTurns=30
+ local c=/var/tmp/fritzload1/dl.cookie.txt f=/var/tmp/fritzload1/dl.response.htm referer tmp1
+ local api1 dl_url X_filename= X_fileid= X_server= X_dlauth= X_waittime= url=
+ grep -c download|[0-9a-z]*|
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ [ 0 -gt 0 ]
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ sed -e s/.*\/files\/\([0-9]*\)\/\(.*\)/X_fileid=\"\1\";X_filename=\"\2\";/;s/\(.*\)\.html";$/\1";/
+ eval X_fileid="447152566";X_filename="xxxx.rar";
+ X_fileid=447152566
+ X_filename=xxxx.rar
+ alreadyLoaded xxxx.rar
+ [ 0 = 1 ]
+ local filename=xxxx.rar storedir
+ [ -z xxxx.rar ]
+ storedir=/var/media/ftp/My_Passport/Downloads
+ [ -f /var/media/ftp/My_Passport/Downloads/xxxx.rar ]
+ return 1
+ [ premium = premium ]
+ __dl_rapidshare_premium
+ [ 0 -lt 5 ]
+ local getcookie cookie_auth serveradress
+ try=1
+ getcookie=https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1
+ GET https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 /var/tmp/fritzload1/dl.response.htm -k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt GET1 1
+ local url=https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 file=/var/tmp/fritzload1/dl.response.htm options=-k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt title=GET1
+ local titleURL=https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 rs=1
+ print GET1: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 Options: -k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
+ curl_msg_update
+ messageCount=3
+ [ 3 -ge 100 ]
+ echo -n 3
+ date +%H:%M:%S
+ echo 20:09:05 GET1: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 Options: -k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
20:09:05 GET1: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 Options: -k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
+ [ 0 = 0 ]
+ return
+ curl_msg GET1: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1
+ local message=GET1: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n GET1: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1
+ [ -k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt = - ]
+ [ 1 = 0 ]
+ /var/media/ftp/My_Passport/FritzLoad/bin/../bin/curl -A 1 -i -so /var/tmp/fritzload1/dl.response.htm https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=getaccountdetails_v1&withcookie=1&withpublicid=1&login=xxxxx&password=xxxxx&cbf=RSAPIDispatcher&cbid=1 --user-agent User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 -k --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
+ [ 1 = 1 ]
+ [ GET1 != GET ]
+ filename GET1
+ tr -c A-Za-z0-9_#\/\-\. _
+ echo -n GET1
+ cp /var/tmp/fritzload1/dl.response.htm /var/tmp/fritzload1/dl.response.htm.GET1.htm
+ return 0
+ grep \(ERROR\) /var/tmp/fritzload1/dl.response.htm
+ getcookie_failed=
+ [ -n ]
+ sed -n s/.*cookie=\([^"]*\).*/\1/p
+ grep cookie /var/tmp/fritzload1/dl.response.htm
+ tr \n \0
+ cookie_auth=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n
+ serveradress=https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2
+ GET https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 /var/tmp/fritzload1/dl.response.htm -k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt GET2 1
+ local url=https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 file=/var/tmp/fritzload1/dl.response.htm options=-k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt title=GET2
+ local titleURL=https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 rs=1
+ print GET2: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 Options: -k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
+ curl_msg_update
+ messageCount=4
+ [ 4 -ge 100 ]
+ echo -n 4
+ date +%H:%M:%S
+ echo 20:09:06 GET2: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 Options: -k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
20:09:06 GET2: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 Options: -k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
+ [ 0 = 0 ]
+ return
+ curl_msg GET2: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2
+ local message=GET2: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n GET2: https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2
+ [ -k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt = - ]
+ [ 1 = 0 ]
+ /var/media/ftp/My_Passport/FritzLoad/bin/../bin/curl -A 1 -i -so /var/tmp/fritzload1/dl.response.htm https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&fileid=447152566&filename=xxxx.rar&try=1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&cbf=RSAPIDispatcher&cbid=2 --user-agent User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 -k --cookie /var/tmp/fritzload1/dl.cookie.txt --cookie-jar /var/tmp/fritzload1/dl.cookie.txt
+ [ 1 = 1 ]
+ [ GET2 != GET ]
+ filename GET2
+ tr -c A-Za-z0-9_#\/\-\. _
+ echo -n GET2
+ cp /var/tmp/fritzload1/dl.response.htm /var/tmp/fritzload1/dl.response.htm.GET2.htm
+ return 0
+ sed -e $!d /var/tmp/fritzload1/dl.response.htm
+ sed -n s/[^:]*:\([^,]*\).*/X_server=\"\1\"/p /var/tmp/fritzload1/dl.response.htm
+ eval X_server=" CP="ALL DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa CONa TELa OUR STP UNI NAV STA PRE"
"
X_server=" Wed"
X_server=" close
"
X_server=" bytes
"
X_server=" 2/30000
"
X_server=" no-cache
"
X_server=" text/javascript; charset=UTF-8
"
X_server=" 50
"
+ X_server= CP=ALL DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa CONa TELa OUR STP UNI NAV STA PRE
./fritzload.sh: eval: line 1: DSP: not found
+ X_server= Wed
+ X_server= close
+ X_server= bytes
+ X_server= 2/30000
+ X_server= no-cache
+ X_server= text/javascript; charset=UTF-8
+ X_server= 50
+ dl_url=http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0
+ _rapidshare_download http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 xxxx.rar --cookie /var/tmp/fritzload1/dl.cookie.txt --retry 3 -C -
+ local durl=http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 file=xxxx.rar opt=--cookie /var/tmp/fritzload1/dl.cookie.txt --retry 3 -C -
+ download http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 xxxx.rar --cookie /var/tmp/fritzload1/dl.cookie.txt --retry 3 -C -
+ /var/media/ftp/My_Passport/FritzLoad/bin/../bin/busybox26 basename xxxx.rar
+ local url=http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 bname=xxxx.rar options=--cookie /var/tmp/fritzload1/dl.cookie.txt --retry 3 -C - chkFileSize= forceFileName=0
+ local failedContentHeader=.*\(text\).* h_file h_file_header h_size h_type filepath logbar
+ filename xxxx.rar
+ echo -n xxxx.rar
+ tr -c A-Za-z0-9_#\/\-\. _
+ filename=xxxx.rar
+ cleanup
+ local type=dl
+ [ 1 = 0 ]
+ _checkNAS
+ targetdir=/var/media/ftp/My_Passport/Downloads
+ [ ! -f /var/tmp/nasstatus.txt ]
+ [ 0 = 1 ]
+ local tempdir= storedir=
+ [ -z xxxx.rar ]
+ tempdir=/var/media/ftp/My_Passport/Downloads/tmp
+ storedir=/var/media/ftp/My_Passport/Downloads
+ mkdir -pm 0777 /var/media/ftp/My_Passport/Downloads/tmp
+ alreadyLoaded /var/media/ftp/My_Passport/Downloads/xxxx.rar
+ [ 0 = 1 ]
+ local filename=/var/media/ftp/My_Passport/Downloads/xxxx.rar storedir
+ [ -z ]
+ storedir=/var/media/ftp/My_Passport/Downloads
+ filename=xxxx.rar
+ [ -f /var/media/ftp/My_Passport/Downloads/xxxx.rar ]
+ return 1
+ [ --cookie /var/tmp/fritzload1/dl.cookie.txt --retry 3 -C - = - ]
+ [ = - ]
+ [ .*\(text\).* = - ]
+ download_limit
+ check_free_diskspace /var/media/ftp/My_Passport/Downloads 200
+ local dir=/var/media/ftp/My_Passport/Downloads minfree=200 free=
+ [ 200 = 0 ]
+ [ -d /var/media/ftp/My_Passport/Downloads ]
+ msg=0
+ true
+ free_diskspace /var/media/ftp/My_Passport/Downloads
+ /var/media/ftp/My_Passport/FritzLoad/bin/../bin/busybox26 df -m /var/media/ftp/My_Passport/Downloads
+ grep -A 1 ^/
+ sed -n :a;$!N;$!ba;s/\n */ /g;p
+ sed -n s,[^/]*[^ ]* *[0-9]* *[0-9]* *\([0-9]*\) .*,\1,p
+ tr -d \n\r
+ free=221633
+ [ -n 221633 ]
+ [ 0 = 0 ]
+ echo Freier Speicher auf /var/media/ftp/My_Passport/Downloads: 221633 Mbyte
Freier Speicher auf /var/media/ftp/My_Passport/Downloads: 221633 Mbyte
+ local sbar0 sbar1 sbar2 sbar3 sbar4 sbar5 sbar6 sbar7 sbar8 sbar9 sbar10 sbar11 sbar12
+ local i=-1 reservedSpace=0 totalSize receivedSize
+ [ -1 -lt 4 ]
+ i=0
+ [ 0 = 1 ]
+ curl_speedbar_vars /var/tmp/fritzload0/dl.progress
+ local file=/var/tmp/fritzload0/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload0/dl.progress ]
+ return 1
+ [ 0 -lt 4 ]
+ i=1
+ [ 1 = 1 ]
+ continue
+ [ 1 -lt 4 ]
+ i=2
+ [ 2 = 1 ]
+ curl_speedbar_vars /var/tmp/fritzload2/dl.progress
+ local file=/var/tmp/fritzload2/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload2/dl.progress ]
+ return 1
+ [ 2 -lt 4 ]
+ i=3
+ [ 3 = 1 ]
+ curl_speedbar_vars /var/tmp/fritzload3/dl.progress
+ local file=/var/tmp/fritzload3/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload3/dl.progress ]
+ return 1
+ [ 3 -lt 4 ]
+ i=4
+ [ 4 = 1 ]
+ curl_speedbar_vars /var/tmp/fritzload4/dl.progress
+ local file=/var/tmp/fritzload4/dl.progress i
+ sbar0=
+ [ -f /var/tmp/fritzload4/dl.progress ]
+ return 1
+ [ 4 -lt 4 ]
+ [ 0 -ne 0 ]
+ [ 221633 -lt 200 ]
+ break
+ limit_bandwidth
+ [ 0 = 1 ]
+ dllimit=1000000k
+ ullimit=1000000k
+ echo URL-Download (T:1/R:5): http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 (File: xxxx.rar)
URL-Download (T:1/R:5): http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 (File: xxxx.rar)
+ echo -n rapidshare_com-premium: xxxx.rar
+ curl_msg_update
+ messageCount=5
+ [ 5 -ge 100 ]
+ echo -n 5
+ local storeFile=/var/media/ftp/My_Passport/Downloads/tmp/xxxx.rar.part
+ [ 0 = 1 ]
+ /var/media/ftp/My_Passport/FritzLoad/bin/../bin/curl -A 1 --location --speed-limit 500b --speed-time 400 --limit-rate 1000000k --user-agent User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 --dump-header /var/tmp/fritzload1/dl.head --output /var/media/ftp/My_Passport/Downloads/tmp/xxxx.rar.part http:// 50
/cgi-bin/rsapi.cgi?sub=download_v1&cookie=6BD8DDC3A505296805C12775588DE792FC405416BDC249D01946DBF2A9D504E8AF41D8739347A7D8B0EF9A461FC86167CD7E8EDDC354F61632AAF2D416C951BE\n&editparentlocation=1&fileid=447152566&filename=xxxx.rar&bin=1&dlauth=0 --globoff --write-out %{http_code} --cookie /var/tmp/fritzload1/dl.cookie.txt --retry 3 -C -
+ local retVal=6
+ cat /var/tmp/fritzload1/dl.code
+ local httpCode=000
+ curl_error_code 6
+ local code=6
+ [ ! -f /var/media/ftp/My_Passport/FritzLoad/bin/../config/curl_error_codes.txt ]
+ grep ^6 /var/media/ftp/My_Passport/FritzLoad/bin/../config/curl_error_codes.txt
+ cat /var/tmp/fritzload1/dl.head
cat: can't open '/var/tmp/fritzload1/dl.head': No such file or directory
+ tr \n ;
+ errmsg Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ date +%H:%M
+ local msg=FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ curl_msg_update
+ messageCount=6
+ [ 6 -ge 100 ]
+ echo -n 6
+ echo FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ curl_msg FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ local message=FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code> type=dl
+ rm -f /var/tmp/fritzload1/dl.progress /var/tmp/fritzload1/dl.progress.file /var/tmp/fritzload1/dl.progress.msg
+ echo -n FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ smbmsg FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ [ 0 -eq 1 ]
+ dboxmsg FAILED: 20:09: Download: 6 Couldn't resolve host. The given remote host was not resolved. / HTTP-Code:(000) / HEAD:<code></code>
+ errmsgdbox======================================================================\n
=== Message auf Dbox/Dreambox wurde ausgeschaltet (Fehler)\n
=== Bitte überprüfen Sie die Einstellungen in der Config\n
=====================================================================
+ [ 0 -gt 0 ]
+ curl_error_code 6
+ local code=6
+ [ ! -f /var/media/ftp/My_Passport/FritzLoad/bin/../config/curl_error_codes.txt ]
+ grep ^6 /var/media/ftp/My_Passport/FritzLoad/bin/../config/curl_error_codes.txt
+ curl_msg Fehler: 6 Couldn't resolve host. The given remote host was not resolved.
+ local message=Fehler: 6 Couldn't resolve host. The given remote host was not resolved. type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n Fehler: 6 Couldn't resolve host. The given remote host was not resolved.
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ rm -f /var/media/ftp/My_Passport/Downloads/tmp/xxxx.rar.part
+ return 1
+ [ 0 -eq 0 ]
+ break
+ return 0
+ retVal=0
+ cleanup
+ local type=dl
+ [ 1 = 0 ]
+ [ 0 -eq 2 ]
+ [ 0 = 1 ]
+ [ 0 -eq 3 ]
+ [ 0 -eq 0 ]
+ errmsg Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ date +%H:%M
+ local msg=FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ curl_msg_update
+ messageCount=7
+ [ 7 -ge 100 ]
+ echo -n 7
+ echo FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ curl_msg FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ local message=FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar) type=dl
+ rm -f /var/tmp/fritzload1/dl.progress*
+ echo -n FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ smbmsg FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ [ 0 -eq 1 ]
+ dboxmsg FAILED: 20:09: Download failed (http://rapidshare.com/files/447152566/xxxx.rar)
+ errmsgdbox======================================================================\n
=== Message auf Dbox/Dreambox wurde ausgeschaltet (Fehler)\n
=== Bitte überprüfen Sie die Einstellungen in der Config\n
=====================================================================
+ [ 0 -gt 0 ]
+ remove_failed http://rapidshare.com/files/447152566/xxxx.rar 06.07.11-20:09; http://rapidshare.com/files/447152566/xxxx.rar /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ local remove=http://rapidshare.com/files/447152566/xxxx.rar store=06.07.11-20:09; http://rapidshare.com/files/447152566/xxxx.rar jobFile=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt failedFile=/var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ lock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 6503 /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ lock /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_failed1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 6503 /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ return 0
+ remove_line http://rapidshare.com/files/447152566/xxxx.rar /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ local line=http://rapidshare.com/files/447152566/xxxx.rar file=/var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt unlock=0
+ [ -n http://rapidshare.com/files/447152566/xxxx.rar -a -f /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt ]
+ alreadyLocked /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_failed1.txt.lock ]
+ ls -l /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ [ 6503 = 6503 ]
+ return 0
+ tr -d \r\t
+ grep -v ^http://rapidshare.com/files/447152566/xxxx.rar$
+ mv /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt.tmp /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ remove_url http://rapidshare.com/files/447152566/xxxx.rar /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ url_string http://rapidshare.com/files/447152566/xxxx.rar
+ sed -e s,^[ \ R]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];\)\?[ \ ]*\([^ ;]*\)[ \ ]*\(;.*\)\?$,\2,;\
s,\ *$,,;\
s,.*\(https\?\|ftp\)://,\1://,I;\
s/%3F/?/
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ sed -e s,\(https\?\|ftp\):/,\1://,
+ tr -s /
+ local file=/var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt url=http://rapidshare.com/files/447152566/xxxx.rar unlock=0
+ [ -n http://rapidshare.com/files/447152566/xxxx.rar -a -f /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt ]
+ alreadyLocked /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_failed1.txt.lock ]
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ ls -l /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ [ 6503 = 6503 ]
+ return 0
+ tr -d \r\t
+ grep -v ^[ \ ]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];[ \ ]*\)\?http://rapidshare.com/files/447152566/xxxx.rar[ \ ]*\(;.*\)\?$
+ mv /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt.tmp /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ [ 0 = 1 ]
+ [ 0 = 1 ]
+ echo 06.07.11-20:09; http://rapidshare.com/files/447152566/xxxx.rar
+ remove_line http://rapidshare.com/files/447152566/xxxx.rar /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local line=http://rapidshare.com/files/447152566/xxxx.rar file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt unlock=0
+ [ -n http://rapidshare.com/files/447152566/xxxx.rar -a -f /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt ]
+ alreadyLocked /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_jobs1.txt.lock ]
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ ls -l /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ [ 6503 = 6503 ]
+ return 0
+ tr -d \r\t
+ grep -v ^http://rapidshare.com/files/447152566/xxxx.rar$
+ mv /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt.tmp /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ remove_url http://rapidshare.com/files/447152566/xxxx.rar /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ url_string http://rapidshare.com/files/447152566/xxxx.rar
+ echo -n http://rapidshare.com/files/447152566/xxxx.rar
+ tr -s /
+ sed -e s,\(https\?\|ftp\):/,\1://,
+ sed -e s,^[ \ R]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];\)\?[ \ ]*\([^ ;]*\)[ \ ]*\(;.*\)\?$,\2,;\
s,\ *$,,;\
s,.*\(https\?\|ftp\)://,\1://,I;\
s/%3F/?/
+ local file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt url=http://rapidshare.com/files/447152566/xxxx.rar unlock=0
+ [ -n http://rapidshare.com/files/447152566/xxxx.rar -a -f /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt ]
+ alreadyLocked /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ __read_lock_pid /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ [ -L /var/tmp/fritzloadLocks/dl_jobs1.txt.lock ]
+ ls -l /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ sed -n s,.* -> \([0-9][0-9]*\)$,\1,p
+ [ 6503 = 6503 ]
+ return 0
+ grep -v ^[ \ ]*\([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]-[0-9][0-9]:[0-9][0-9];[ \ ]*\)\?http://rapidshare.com/files/447152566/xxxx.rar[ \ ]*\(;.*\)\?$
+ tr -d \r\t
+ mv /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt.tmp /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ [ 0 = 1 ]
+ [ 0 = 1 ]
+ unlock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ unlock /var/media/ftp/My_Passport/FritzLoad/bin/../config/dl_failed1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_failed1.txt.lock
+ curl_msg_update
+ messageCount=8
+ [ 8 -ge 100 ]
+ echo -n 8
+ cleanlog /var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt
+ local logfile=/var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt
+ [ ! -f /var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt ]
+ lock /var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt
+ local lock=/var/tmp/fritzloadLocks/download1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 6503 /var/tmp/fritzloadLocks/download1.txt.lock
+ return 0
+ /var/media/ftp/My_Passport/FritzLoad/bin/../bin/busybox26 tail -n 10000 /var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt
+ rm -f /var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt.tmp
+ unlock /var/media/ftp/My_Passport/FritzLoad/bin/../log/download1.txt
+ rm -f /var/tmp/fritzloadLocks/download1.txt.lock
+ stopping 1
+ local type=dl
+ local stopFile=/var/media/ftp/My_Passport/FritzLoad/bin/../tmp/signal.stop1.dl
+ [ -f /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/signal.stop1.dl ]
+ [ -f /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/signal.restart1.dl ]
+ return 1
+ sleep 1
+ true
+ isEmpty /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ file=/var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ lock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ local lock=/var/tmp/fritzloadLocks/dl_jobs1.txt.lock waitMax=30 exit=1 garbageEvery=5 checked=0
+ ln -s 6503 /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ grep -c . /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ [ 0 = 0 ]
+ unlock /var/media/ftp/My_Passport/FritzLoad/cgi/../config/dl_jobs1.txt
+ rm -f /var/tmp/fritzloadLocks/dl_jobs1.txt.lock
+ return 0
+ print Downloadliste ist leer. 2
+ curl_msg_update
+ messageCount=9
+ [ 9 -ge 100 ]
+ echo -n 9
+ date +%H:%M:%S
+ echo 20:09:13 Downloadliste ist leer.
20:09:13 Downloadliste ist leer.
+ [ 2 = 0 ]
+ curl_msg Downloadliste ist leer.
+ local message=Downloadliste ist leer. type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n Downloadliste ist leer.
+ [ 2 -ge 2 ]
+ smbmsg Downloadliste ist leer.
+ [ 0 -eq 1 ]
+ [ 2 = 3 ]
+ [ = 1 ]
+ break
+ _doAfterDL
+ [ = 1 ]
+ unrarit
+ unrar_settings
+ local ini=/var/media/ftp/My_Passport/FritzLoad/bin/../config/unrar.ini
+ [ ! -f /var/media/ftp/My_Passport/FritzLoad/bin/../config/unrar.ini ]
+ echo Unrar-Fehler: Es existieren keine Unrar-Einstellungen (/var/media/ftp/My_Passport/FritzLoad/bin/../config/unrar.ini)
Unrar-Fehler: Es existieren keine Unrar-Einstellungen (/var/media/ftp/My_Passport/FritzLoad/bin/../config/unrar.ini)
+ return 1
+ return 1
+ [ ! -f /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/.transfer ]
+ touch /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/.transfer
+ transferDownload
+ NASTRANSFERDONE=0
+ local file= f
+ [ -z OFF -o OFF = OFF ]
+ return 0
+ sleep 5
+ rm /var/media/ftp/My_Passport/FritzLoad/bin/../tmp/.transfer
+ dboxmsg
+ errmsgdbox======================================================================\n
=== Message auf Dbox/Dreambox wurde ausgeschaltet (Fehler)\n
=== Bitte überprüfen Sie die Einstellungen in der Config\n
=====================================================================
+ [ 0 -gt 0 ]
+ [ 0 = 1 ]
+ led wlan_off
+ [ 0 -eq 1 ]
+ cleanup
+ local type=dl
+ [ 1 = 0 ]
print "FritzLoad beendet" 1
+ print FritzLoad beendet 1
+ curl_msg_update
+ messageCount=10
+ [ 10 -ge 100 ]
+ echo -n 10
+ date +%H:%M:%S
+ echo 20:09:18 FritzLoad beendet
20:09:18 FritzLoad beendet
+ [ 1 = 0 ]
+ curl_msg FritzLoad beendet
+ local message=FritzLoad beendet type=dl
+ rm -f /var/tmp/fritzload1/dl.progress.msg
+ echo -n FritzLoad beendet
+ [ 1 -ge 2 ]
+ [ 1 = 3 ]
if [ "$restart" = 1 ];then
echo "FritzLoad restart"
curl_msg "FritzLoad restart"
cd $pdir/bin
($0 i$instance "$action" "$opt1" "$opt2" "$opt3")&
exit
fi
+ [ = 1 ]