انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: دانلود منجر Persepolis ورژن ۱.۱۸.۴  (دفعات بازدید: 189408 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین HSN6

  • Hero Member
  • *
  • ارسال: 866
  • جنسیت : پسر
  • یک راَکتیست اسپرانتیست پایتونیست گودوئیست!
    • بلاگ شخصی
با ncurses یا یه هم‌چین چیزی فکر کنم بشه مشکل وابستگی به میزکار رو حل کرد و روی ترمینال محیط گرافیکی داشت ! این جوری برای کسانی که فقط از رابط متنی استفاده می‌کنند ( مثلاً روی رسپری‌پای ) هم قابل استفاده است .
PDMT وابستگی به میزکار نداره :)
علاوه بر اوبونتو هم میتونید روی توزیع های دیگه مثل فدورا و ... هم نصبش کنید به شرط اینکه پیش نیازهاش نصب باشه
فکر نمیکنم کسانی که از رزبری پای و ... هم استفاده میکنند باهاش مشکلی داشته باشند

منظورم PersianDM بود .
یعنی یه چیزی که هم وابسته نبودن به میزکار PDMT رو داشته باشه و هم راحتی در کاربری گرافیکی PDM . که به نظرم یه چیزی مثل ncurses مناسب این کار باشه .

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
با ncurses یا یه هم‌چین چیزی فکر کنم بشه مشکل وابستگی به میزکار رو حل کرد و روی ترمینال محیط گرافیکی داشت ! این جوری برای کسانی که فقط از رابط متنی استفاده می‌کنند ( مثلاً روی رسپری‌پای ) هم قابل استفاده است .
PDMT وابستگی به میزکار نداره :)
علاوه بر اوبونتو هم میتونید روی توزیع های دیگه مثل فدورا و ... هم نصبش کنید به شرط اینکه پیش نیازهاش نصب باشه
فکر نمیکنم کسانی که از رزبری پای و ... هم استفاده میکنند باهاش مشکلی داشته باشند

منظورم PersianDM بود .
یعنی یه چیزی که هم وابسته نبودن به میزکار PDMT رو داشته باشه و هم راحتی در کاربری گرافیکی PDM . که به نظرم یه چیزی مثل ncurses مناسب این کار باشه .

ممنون :) روش کار میکنم

آفلاین Риал Краесис

  • High Hero Member
  • *
  • ارسال: 1178
  • جنسیت : پسر
  • !!! I FIGHT FOR THE USERS
با ncurses یا یه هم‌چین چیزی فکر کنم بشه مشکل وابستگی به میزکار رو حل کرد و روی ترمینال محیط گرافیکی داشت ! این جوری برای کسانی که فقط از رابط متنی استفاده می‌کنند ( مثلاً روی رسپری‌پای ) هم قابل استفاده است .
PDMT وابستگی به میزکار نداره :)
علاوه بر اوبونتو هم میتونید روی توزیع های دیگه مثل فدورا و ... هم نصبش کنید به شرط اینکه پیش نیازهاش نصب باشه
فکر نمیکنم کسانی که از رزبری پای و ... هم استفاده میکنند باهاش مشکلی داشته باشند

منظورم PersianDM بود .
یعنی یه چیزی که هم وابسته نبودن به میزکار PDMT رو داشته باشه و هم راحتی در کاربری گرافیکی PDM . که به نظرم یه چیزی مثل ncurses مناسب این کار باشه .

ممنون :) روش کار میکنم


من رو ارچ این خطا رو دریافت میکنم:
pdmt -l "http://dl5.downloadha.com/AliGh/Mostanad/THE%20HOBBIT-%20Battle%20of%20Five%20Armies%20VFX%20(www.downloadha.com).zip"












#########################################
#########################################
### Persian Download Manager Terminal ###
############  (PDMT)  ###################
#########################################
                                         
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
/home/fouruhar/.persian_download_manager_terminal/final_script: line 73: [: 2336: integer expression expected
/home/fouruhar/.persian_download_manager_terminal/final_script: line 77: 2336848")syntax error: invalid arithmetic operator (error token is "
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
^C
please wait! Don't close terminal until PDMT has finished
cat: /home/fouruhar/.persian_download_manager_terminal/temp/p1.txt: No such file or directory
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r1.txt: No such file or directory
Download Canceled by user!Please Wait...
Finish!


If you do not like Arch use Gentoo and just shut up
 and If you do not like Gentoo use Arch and shut up
finaly If you do not like either use Ubuntu and shut the f*** up

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
چقدر خوب هست که میتونی روی آرچ تست کنی و به من کمک کنی،ممنون :)
لینکت مشکل نداره و الان با PDMT راحت برای من دانلود میشه و سرعتش هم خوبه
پس ببینیم مشکل از کجاست ;)
خب به من این خروجی ها رو جداگانه بده
bash --version
curl --version
aria2c --version
wget --version

ls /home/fouruhar/.persian_download_manager_terminal
cd
pwd

این خروجی ها رو به من بده تا ببینم چه جوریه اوضاع و بعدش بریم مراحل بعد
ممنون
« آخرین ویرایش: 30 بهمن 1393، 10:51 ق‌ظ توسط علیرضاامیرصمیمی »

آفلاین Риал Краесис

  • High Hero Member
  • *
  • ارسال: 1178
  • جنسیت : پسر
  • !!! I FIGHT FOR THE USERS
چقدر خوب هست که میتونی روی آرچ تست کنی و به من کمک کنی،ممنون :)
لینکت مشکل نداره و الان با PDMT راحت برای من دانلود میشه و سرعتش هم خوبه
پس ببینیم مشکل از کجاست ;)
خب به من این خروجی ها رو جداگانه بده
bash --version
curl --version
aria2c --version
wget --version

ls /home/fouruhar/.persian_download_manager_terminal
cd
pwd

این خروجی ها رو به من بده تا ببینم چه جوریه اوضاع و بعدش بریم مراحل بعد
ممنون

خوشحالم میتونم کمک کنم.
والا لینکه رو دیگه اجباری با دادن دستور به خود اریا2 دانلود کردم.

خروجی ها هم به ترتیب:
bash --version:
GNU bash, version 4.3.33(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.

curl --version:
curl 7.40.0 (x86_64-unknown-linux-gnu) libcurl/7.40.0 OpenSSL/1.0.2 zlib/1.2.8 libidn/1.29 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

aria2c --version:
aria2 version 1.18.9
Copyright (C) 2006, 2014 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.8 libxml2/2.9.2 sqlite3/3.8.8.1 GnuTLS/3.3.12 nettle GMP/6.0.0 c-ares/1.10.0
Compiler: gcc 4.9.2 20141224 (prerelease)
  built by   x86_64-unknown-linux-gnu
  on         Feb  2 2015 08:14:18
System: Linux 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64

Report bugs to https://github.com/tatsuhiro-t/aria2/issues
Visit http://aria2.sourceforge.net/

wget --version:
GNU Wget 1.16.1 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie -psl +ssl/openssl

Wgetrc:
    /etc/wgetrc (system)
Locale:
    /usr/share/locale
Compile:
    gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
    -DLOCALEDIR="/usr/share/locale" -I. -I../lib -I../lib
    -D_FORTIFY_SOURCE=2 -I/usr/include/uuid -DHAVE_LIBSSL -DNDEBUG
    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
    --param=ssp-buffer-size=4
Link:
    gcc -I/usr/include/uuid -DHAVE_LIBSSL -DNDEBUG -march=x86-64
    -mtune=generic -O2 -pipe -fstack-protector-strong
    --param=ssp-buffer-size=4
    -Wl,-O1,--sort-common,--as-needed,-z,relro -lpcre -luuid -lssl
    -lcrypto -L/usr/lib -lz -lidn ftp-opie.o openssl.o http-ntlm.o
    ../lib/libgnu.a

Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.

ls /home/fouruhar/.persian_download_manager_terminal:
about.txt  final_script  help  temp

دستور اخر هم مسیر یوزر رو نشون میده:
/home/fouruhar

امید وارم مفید واقع شوند.


If you do not like Arch use Gentoo and just shut up
 and If you do not like Gentoo use Arch and shut up
finaly If you do not like either use Ubuntu and shut the f*** up

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
تا اینجا که همه چی خوبه
البته چون شما از آٰرچ استفاده میکنی ، بسته های به روزتری داری
امیدوارم تفاوت ورژن bash دردسر درست نکرده باشه
حالا بذار دستور زیر اجرا بشه و خروجی بده و ببین لینک این عکس که حجم کمی داره چه اتفاقی براش میفته

sh -x /home/fouruhar/.persian_download_manager_terminal/final_script -l "http://s4.picofile.com/file/8171228976/4.jpg"

آفلاین Риал Краесис

  • High Hero Member
  • *
  • ارسال: 1178
  • جنسیت : پسر
  • !!! I FIGHT FOR THE USERS
تا اینجا که همه چی خوبه
البته چون شما از آٰرچ استفاده میکنی ، بسته های به روزتری داری
امیدوارم تفاوت ورژن bash دردسر درست نکرده باشه
حالا بذار دستور زیر اجرا بشه و خروجی بده و ببین لینک این عکس که حجم کمی داره چه اتفاقی براش میفته

sh -x /home/fouruhar/.persian_download_manager_terminal/final_script -l "http://s4.picofile.com/file/8171228976/4.jpg"

زیاد طول کشید منم کنسلش کردم اینم log:
sh -x /home/fouruhar/.persian_download_manager_terminal/final_script -l "http://s4.picofile.com/file/8171228976/4.jpg"
+ clear screen
+ trap finish exit
+ trap ctrl_c INT
+ logo
+ echo '#########################################'
#########################################
+ echo '#########################################'
#########################################
+ echo '### Persian Download Manager Terminal ###'
### Persian Download Manager Terminal ###
+ echo '############  (PDMT)  ###################'
############  (PDMT)  ###################
+ echo '#########################################'
#########################################
+ echo '                                         '
                                         
+ input_options='-l http://s4.picofile.com/file/8171228976/4.jpg'
++ env
++ grep -e HOME
++ awk -F= '{ print $2 }'
+ user=/home/fouruhar
+ download_folder=/home/fouruhar/Downloads/PersianDM
+ temp_path=/home/fouruhar/.persian_download_manager_terminal/temp
+ mkdir /home/fouruhar/Downloads/PersianDM
+ mkdir /home/fouruhar/.persian_download_manager_terminal/temp
+ '[' '!' -f /home/fouruhar/.persian_download_manager_terminal/temp/pdm_number.txt ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/pdm_number.txt
+ pdm_num=4
+ '[' 4 -ge 5000 ']'
++ expr 4 + 1
+ pdm_num=5
+ echo 5
+ getopts l:i:p:u:a:s:e:m:r:t:d:w:f:hv options
+ case "${options}" in
+ download_link=http://s4.picofile.com/file/8171228976/4.jpg
+ getopts l:i:p:u:a:s:e:m:r:t:d:w:f:hv options
+ '[' '' '!=' '' ']'
+ '[' http://s4.picofile.com/file/8171228976/4.jpg = '' ']'
+ download_type=1
+ '[' '' '!=' '' ']'
+ ip_port=
+ '[' '' '!=' '' ']'
+ user_pass=:
++ echo ''
++ awk -F: '{ print $1 }'
+ start_time_hour=
++ echo ''
++ awk -F: '{ print $2 }'
+ start_time_minute=
++ echo ''
++ awk -F: '{ print $1 }'
+ end_time_hour=
++ echo ''
++ awk -F: '{ print $2 }'
+ end_time_minute=
+ '[' '' '!=' '' ']'
+ start_time=
+ '[' '' '!=' '' ']'
+ end_time=
+ case "$do_after_download" in
+ do_after=1
+ '[' 1 -ne 1 ']'
+ stty echo
+ '[' '' = '' ']'
+ max_num_connections=16
+ '[' '' = '' ']'
+ retry=0
+ echo '#!/bin/bash'
+ echo 'echo 0|cat > /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt'
+ echo 'echo 3|cat >/home/fouruhar/.persian_download_manager_terminal/temp/s5.txt'
+ chmod +x /home/fouruhar/.persian_download_manager_terminal/temp/aria_ready_file
+ echo 3
++ date +%H:%M
+ var1=17:34
+ '[' '' '!=' '' ']'
+ '[' '' '!=' '' ']'
+ download_process
+ case "$download_type" in
+ download_single
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ '[' 3 '!=' 0 ']'
+ '[' 3 '!=' 2 ']'
+ '[' 3 '!=' 1 ']'
+ '[' 3 '!=' 5 ']'
+ '[' 3 = 3 ']'
+ download
+ case "$reconnecting_ability" in
+ download_func
+ progress_dialog
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
++ curl -sI -x '' -U : http://s4.picofile.com/file/8171228976/4.jpg
++ awk '/Content-Length/ { print $2 }'
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ size_remote=$'128790\r'
+ '[' $'128790\r' -eq 0 ']'
/home/fouruhar/.persian_download_manager_terminal/final_script: line 73: [: 1287: integer expression expected
")syntax error: invalid arithmetic operator (error token is "t: line 77: 128790
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
+ '[' '' '!=' 0 ']'
+ '[' 3 = 3 ']'
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
+ aria_ready=
++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ download_flag=3
+ sleep 0.5
^C++ ctrl_c
++ echo 5
++ echo ''

++ echo 'please wait! Don'\''t close terminal until PDMT has finished'
please wait! Don't close terminal until PDMT has finished
+++ cat /home/fouruhar/.persian_download_manager_terminal/temp/p5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/p5.txt: No such file or directory
++ aria2_pid=
++ kill
+++ cat /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
cat: /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt: No such file or directory
++ aria_ready=
++ '[' '' = 0 ']'
++ stop
+++ cat /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
++ download_flag=5
++ case $download_flag in
++ '[' '' = '' ']'
++ echo 'Download Canceled by user!Please Wait...'
Download Canceled by user!Please Wait...
++ echo '#################'
++ cat
++ date
++ cat
++ echo http://s4.picofile.com/file/8171228976/4.jpg
++ cat
++ echo 'Download Canceled by user!'
++ cat
++ echo '#################'
++ cat
++ '[' '' '!=' '' ']'
++ exit
+ finish
+ rm -v /home/fouruhar/.persian_download_manager_terminal/temp/p5.txt
+ rm -v /home/fouruhar/.persian_download_manager_terminal/temp/r5.txt
+ rm -v /home/fouruhar/.persian_download_manager_terminal/temp/s5.txt
+ rm -v /home/fouruhar/.persian_download_manager_terminal/temp/5.txt
+ rm -v /home/fouruhar/.persian_download_manager_terminal/temp/e5.txt
+ rm -v /home/fouruhar/.persian_download_manager_terminal/temp/aria_ready_file
+ echo 'Finish!'
Finish!


If you do not like Arch use Gentoo and just shut up
 and If you do not like Gentoo use Arch and shut up
finaly If you do not like either use Ubuntu and shut the f*** up

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
خروجی این دستور رو لطفا به من بده

curl -sI "http://s4.picofile.com/file/8171228976/4.jpg" | awk '/Content-Length/ { print $2 }'

آفلاین Риал Краесис

  • High Hero Member
  • *
  • ارسال: 1178
  • جنسیت : پسر
  • !!! I FIGHT FOR THE USERS
خروجی این دستور رو لطفا به من بده

curl -sI "http://s4.picofile.com/file/8171228976/4.jpg" | awk '/Content-Length/ { print $2 }'

128790
 :o


If you do not like Arch use Gentoo and just shut up
 and If you do not like Gentoo use Arch and shut up
finaly If you do not like either use Ubuntu and shut the f*** up

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
خروجی این رو هم بذار لطفا
cat /home/fouruhar/.persian_download_manager_terminal/final_script

آفلاین Риал Краесис

  • High Hero Member
  • *
  • ارسال: 1178
  • جنسیت : پسر
  • !!! I FIGHT FOR THE USERS
خروجی این رو هم بذار لطفا
cat /home/fouruhar/.persian_download_manager_terminal/final_script

#!/bin/bash
#PerisanDM Terminal (PDMT) written by AliReza AmirSamimi(alireza.amirsamimi@gmail.com) and It is based on aria2
#s=download status r=aria ready p=aria pid e=end status
#0=aria ready 1=aria not ready
#download_flag 0=completed 1=paused 2=failed 3=download 4=reconnecting 5=ctrl_c

#functions

finish (){
rm -v $temp_path/"p$pdm_num".txt >/dev/null 2>&1
rm -v $temp_path/"r$pdm_num".txt >/dev/null 2>&1
rm -v $temp_path/"s$pdm_num".txt >/dev/null 2>&1
rm -v $temp_path/"$pdm_num".txt  >/dev/null 2>&1
rm -v $temp_path/"e$pdm_num".txt >/dev/null 2>&1
rm -v $temp_path/aria_ready_file >/dev/null 2>&1
echo "Finish!"
}

ctrl_c () {
echo "5"> $temp_path/"s$pdm_num".txt
echo ""
echo "please wait! Don't close terminal until PDMT has finished"       
aria2_pid=$(cat $temp_path/"p$pdm_num".txt) 2> /dev/null
kill $aria2_pid 2> /dev/null
aria_ready=$(cat $temp_path/"r$pdm_num".txt) 2> /dev/null
while [ "$aria_ready" = "0" ]
    do
      sleep 1
      aria_ready=$(cat $temp_path/"r$pdm_num".txt) 2> /dev/null
done
stop
if [ "" != "$end_time" ]
then
    echo "2">$temp_path/"e$pdm_num".txt
    sleep 12

fi        
exit
}

func_after () {

end_status=$(cat $temp_path/"e$pdm_num".txt) 2> /dev/null
if [ "" != "$end_time" ] && [ $end_status -eq 0 ]
then
echo "2"|cat >$temp_path/"e$pdm_num".txt
sleep 20
fi
sleep 5
finish

case "$do_after" in
    2)
    killall aria2c 2> /dev/null
    echo $password_input |sudo -S shutdown -h now
    ;;
    3)
    killall aria2c 2> /dev/null
    echo $password_input |sudo -S pm-suspend
    ;;
    4)
    killall aria2c 2> /dev/null
    echo $password_input |sudo -S pm-hibernate
    ;;
esac
exit
}


download_func () {
size_remote=$( curl -sI -x "$ip_port" -U "$user_pass" "$download_link" | awk '/Content-Length/ { print $2 }' )

if [ $size_remote -eq 0 ]
then
    size_remote=$(wget --spider -e use-proxy=yes --proxy-user="$user_name" --proxy-password="$password_name" -e --http-proxy="$ip_port" "$download_link" 2>&1 | awk '/Length/ { print $2 }')
fi
size_m=$((size_remote/1048576))
case $size_m in
[2-9]|1[0-5])
x_para=$size_m
;;
*)
x_para=16
;;
esac

if [ $x_para -gt $max_num_connections ]
   then
       x_parameter=$max_num_connections
   else
       x_parameter=$x_para
fi   

aria2c --on-download-start="$temp_path/aria_ready_file"  --all-proxy=$ip_port --summary-interval=1 --all-proxy-passwd=$password_name --all-proxy-user=$user_name --retry-wait=$retry -s 16 -x $x_parameter -k 1M -c -d $download_folder "$download_link" 2>&1 | cat > $temp_path/"$pdm_num".txt

echo "1" |cat > $temp_path/"r$pdm_num".txt
aria_status=$(cat $temp_path/"$pdm_num".txt|tail -50|egrep -a "download completed|download in-progress" )
case $aria_status in
"(OK):download completed.")
echo "0"> $temp_path/"s$pdm_num".txt
echo "Please wait..."
;;
"(INPR):download in-progress.")
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
if [ "$download_flag" != "4" ] && [ "$download_flag" != "5" ]
  then
    echo "1"> $temp_path/"s$pdm_num".txt
fi
                ;;
*)
echo "2"> $temp_path/"s$pdm_num".txt
;;
esac

}


progress_dialog () {
aria_ready=$(cat $temp_path/"r$pdm_num".txt) 2> /dev/null
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null

while [ "$aria_ready" != "0" ] && [ "$download_flag" = "3" ]
        do
  aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
  download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
  sleep 0.5  
done

ps -A | grep -i aria2c | awk {'print $1'}|tail -1|cat > $temp_path/"p$pdm_num".txt
aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
while [  "$aria_ready" = "0" ] && [ "$download_flag" = "3" ]
   do
   clear the screen
   logo
   download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
   progress_title=$(cat $temp_path/"$pdm_num".txt|tail -50|awk '/CN/ {print $0 }'|tail -1)
   download_percent=$(echo "$progress_title"| awk -F/ '{ print $2 }' | awk -F"(" '{ print $2 }' | awk -F")" '{ print $1 }'|awk -F"%" '{ print $1 }')
   echo "$progress_title"
   sleep 2
done
clear the screen
logo
}


check_con (){
aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
while [ "$aria_ready" != "0" ] && [ "$download_flag" = "3" ]
    do
     sleep 10
     aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
     download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null 
done

while [ "$check_connection" = "" ] && [ "$aria_ready" = "0" ] && [ "$download_flag" = "3" ]
   do
   check_connection=$(cat $temp_path/"$pdm_num".txt|tail -50|awk '/CN/ {print $0 }'|tail -1|awk -F":" '{print $2 }'|awk '{print $1}' )
   sleep 2
   aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
   download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
done

if [ "$check_connection" = "1" ]
   then
       sleep 10
       check_connection=$(cat $temp_path/"$pdm_num".txt|tail -50|awk '/CN/ {print $0 }'|tail -1|awk -F":" '{print $2 }'|awk '{print $1}' )
fi
     
while [ "$aria_ready" = "0" ] && [ "$download_flag" = "3" ]
   do
   check_connection_new=$(cat $temp_path/"$pdm_num".txt|tail -50|awk '/CN/ {print $0 }'|tail -1|awk -F":" '{print $2 }'|awk '{print $1}' )
   if [ "$check_connection" -gt "$check_connection_new" ]
     then
     echo "4">$temp_path/"s$pdm_num".txt
     sleep 0.2
     aria2_pid=$(cat $temp_path/"p$pdm_num".txt) 2> /dev/null
     kill $aria2_pid 2> /dev/null
     break
   fi       
   sleep 120
   aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
   download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
done           
}


download (){

case "$reconnecting_ability" in
        "y" | "yes")
        (download_func) & (progress_dialog)  & (check_con)
        ;;
       
        *)
          (download_func) & (progress_dialog)
        ;;

esac

}


stop (){
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
case $download_flag in
     0)
     echo "Download Compelete!Please Wait..."
     echo "#################"|cat >> ~/Downloads/PersianDM/report
     date|cat >> ~/Downloads/PersianDM/report
     echo "$download_link"|cat >> ~/Downloads/PersianDM/report
     echo "download complete!"|cat >> ~/Downloads/PersianDM/report
     echo "#################"|cat >> ~/Downloads/PersianDM/report     
     ;;
     1)
     echo "Download Paused!Please Wait..."
     echo "#################"|cat >> ~/Downloads/PersianDM/report
     date|cat >> ~/Downloads/PersianDM/report
     echo "$download_link"|cat >> ~/Downloads/PersianDM/report
     echo "download paused!"|cat >> ~/Downloads/PersianDM/report
     echo "#################"|cat >> ~/Downloads/PersianDM/report
     ;;
     
     2)
     echo "Download Failed!Please Wait..."
     echo "#################"|cat >> ~/Downloads/PersianDM/report
     date|cat >> ~/Downloads/PersianDM/report
     echo "$download_link"|cat >> ~/Downloads/PersianDM/report
     echo "download Failed!"|cat >> ~/Downloads/PersianDM/report
     echo "#################"|cat >> ~/Downloads/PersianDM/report
     ;;
     5)
     if [ "$my_file" = "" ]
     then
         echo "Download Canceled by user!Please Wait..."
         echo "#################"|cat >> ~/Downloads/PersianDM/report
         date|cat >> ~/Downloads/PersianDM/report
         echo "$download_link"|cat >> ~/Downloads/PersianDM/report
         echo "Download Canceled by user!"|cat >> ~/Downloads/PersianDM/report
         echo "#################"|cat >> ~/Downloads/PersianDM/report
     else
         echo "Queue Canceled by user!Please Wait..."
         echo "#################"|cat >> ~/Downloads/PersianDM/report
         date|cat >> ~/Downloads/PersianDM/report
         echo "Queue Canceled by user!"|cat >> ~/Downloads/PersianDM/report
         echo "#################"|cat >> ~/Downloads/PersianDM/report 
     fi
     ;;
     
esac
     
}


download_single () {
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
while [ "$download_flag" != "0" ] && [ "$download_flag" != "2" ] && [ "$download_flag" != "1" ] && [ "$download_flag" != "5" ]
do

while [ "$download_flag" = "3" ]
do
download
download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
done

while [ "$download_flag" = "4" ]
do

echo "reconnecting... .be patient"
echo "#################"|cat >> ~/Downloads/PersianDM/report
                date|cat >> ~/Downloads/PersianDM/report
                echo "Reconnecting"|cat >> ~/Downloads/PersianDM/report
                echo "#################"|cat >> ~/Downloads/PersianDM/report
               
while [ "$aria_ready" != "1" ]
      do
      aria_ready=$(cat $temp_path/"r$pdm_num".txt ) 2> /dev/null
      sleep 5
done
     
echo "3"> $temp_path/"s$pdm_num".txt
        download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null

done
done
stop
}


download_queue () {
while read -r line
do
download_link=$line
if [ "$download_link" = "" ]
   then
       break
fi   
echo "3"> $temp_path/"s$pdm_num".txt
download_single
sleep 1
done < "$my_file"

download_flag=$(cat $temp_path/"s$pdm_num".txt) 2> /dev/null
if [ "$download_flag" != "1" ]
  then
      echo "Queue Compelete"
    echo "#################"|cat >> ~/Downloads/PersianDM/report
    date|cat >> ~/Downloads/PersianDM/report
            echo "Queue Compelete"|cat >> ~/Downloads/PersianDM/report
            echo "#################"|cat >> ~/Downloads/PersianDM/report
        else
            echo "Queue Paused"
    echo "#################"|cat >> ~/Downloads/PersianDM/report
            date|cat >> ~/Downloads/PersianDM/report
            echo "Queue Paused"|cat >> ~/Downloads/PersianDM/report
            echo "#################"|cat >> ~/Downloads/PersianDM/report
fi           
}


download_process () {
case "$download_type" in
      1)
download_single
        ;;
      2)
download_queue 
;;
     
esac
func_after
}


logo () {
echo "#########################################"
echo "#########################################"
echo "### Persian Download Manager Terminal ###"
echo "############  (PDMT)  ###################"
echo "#########################################"
echo "                                         "
}



#initialization
clear screen
trap finish exit
trap ctrl_c INT
logo
input_options=$@
user=$(env | grep  -e HOME | awk -F= '{ print $2 }')
download_folder="$user/Downloads/PersianDM"
temp_path="$user/.persian_download_manager_terminal/temp"
mkdir $download_folder >/dev/null 2>&1
mkdir $temp_path       >/dev/null 2>&1
if [ ! -f $temp_path/pdm_number.txt ]
    then
    echo "0"> $temp_path/pdm_number.txt
    pdm_num=0
    else
    pdm_num=`cat $temp_path/pdm_number.txt`
    if [ $pdm_num -ge 5000 ]
       then
           pdm_num=0
    fi       
    pdm_num=`expr $pdm_num + 1`
    echo "$pdm_num"> $temp_path/pdm_number.txt
fi


#inputs
while getopts "l:i:p:u:a:s:e:m:r:t:d:w:f:hv" options ; do
case "${options}" in
    l)
    download_link=${OPTARG}
    ;;
    i)
    ip_name=${OPTARG}
    ;;
    p)
    port_name=${OPTARG}
    ;;
    u)
    user_name=${OPTARG}
    ;;
    a)
    password_name=${OPTARG}
    ;;
    s)
    start_time_input=${OPTARG}
    ;;
    e)
    end_time_input=${OPTARG}
    ;;
    m)
    max_num_connections=${OPTARG}
    ;;
    r)
    reconnecting_ability=${OPTARG}
    ;;
    t)
    retry=${OPTARG}
    ;;
    d)
    do_after_download=${OPTARG}
    ;;
    w)
    password_input=${OPTARG}
    ;;
    f)
    my_file=${OPTARG}
    ;;
    h)
    cat $user/.persian_download_manager_terminal/help
    exit
    ;;
    v)
    cat $user/.persian_download_manager_terminal/about.txt
    exit
    ;;
esac
done

#find link & define download type
if [ "$my_file" != "" ]
then
    cat $my_file
    if [ $? -eq 0 ]
then
        download_type=2
else
    echo "ERROR!!File Not Exist. Adress : $my_file "
        exit
    fi
elif   [ "$download_link" = "" ]
   then
    word_count=`echo $input_options|wc -w`
    for iii in `seq 1 $word_count`;
            do
                  word_word=$(echo $input_options | cut -d \  -f $iii)
                link_input=$(echo "$word_word"|grep -e "://" )
                size_link_input=${#link_input}
                if [ $size_link_input -gt 12 ]   
                    then
                        download_link=$link_input
                        download_type=1
                fi                   
              done
                 else
                      download_type=1
             
fi

#proxy
if [ "$ip_name" != "" ] && [ "$port_name" != "" ]
       then ip_port="$ip_name:$port_name"
       else ip_port=""
fi
if [ "$user_name" != "" ] && [ "$password_name" != "" ]
          then user_pass="$user_name:$password_name"
          else user_pass=":"
fi
#start and end time
start_time_hour=$(echo "$start_time_input" | awk -F: '{ print $1 }')
start_time_minute=$(echo "$start_time_input" | awk -F: '{ print $2 }')
end_time_hour=$(echo "$end_time_input" | awk -F: '{ print $1 }')
end_time_minute=$(echo "$end_time_input" | awk -F: '{ print $2 }')
if [ "$start_time_input" != "" ]
   then
start_time_hour_length=`expr length $start_time_hour`
if [ $start_time_hour_length -lt 2 ]
then
start_time_hour="0$start_time_hour"
fi
start_time_minute_length=`expr length $start_time_minute`
if [ $start_time_minute_length -lt 2 ]
then
start_time_minute="0$start_time_minute"
fi
        start_time="$start_time_hour:$start_time_minute"
   else start_time="$start_time_hour$start_time_minute"
fi
if  [ "$end_time_input" != "" ]
    then
end_time_hour_length=`expr length $end_time_hour`
if [ $end_time_hour_length -lt 2 ]
then
end_time_hour="0$end_time_hour"
fi
end_time_minute_length=`expr length $end_time_minute`
if [ $end_time_minute_length -lt 2 ]
then
end_time_minute="0$end_time_minute"
fi
        end_time="$end_time_hour:$end_time_minute"
     else end_time="$end_time_hour$end_time_minute"
fi
#after download and input password
case "$do_after_download" in

      "shutdown")
      do_after="2"
      ;;
      "hibernate")
      do_after="3"
      ;;
      "suspend")
      do_after="4"
      ;;
      *)
      do_after="1"
      ;;
esac

if [ $do_after -ne 1 ] 
   then
      if [ "$password_input" = "" ]
          then
              echo "Please enter root password"
              stty -echo
              read password_input
      fi   
echo $password_input |sudo -S whoami  2> /dev/null
ss=$?
while [ $ss -ne 0 ]
              do
                stty echo
echo "WRONG password!!,Please re-enter root password"
stty -echo
                read password_input
                echo $password_input |sudo -S whoami 2> /dev/null
                ss=$?
done
fi
stty echo
#max number of connections
if [ "$max_num_connections" = "" ]
    then
        max_num_connections=16
fi
#retry
if [ "$retry" = "" ]
       then
           retry=0
fi           


#download process code
echo "#!/bin/bash" >$temp_path/aria_ready_file
echo "echo "0"|cat > $temp_path/"r$pdm_num".txt" >> $temp_path/aria_ready_file
echo "echo "3"|cat >$temp_path/"s$pdm_num".txt" >> $temp_path/aria_ready_file
chmod +x $temp_path/aria_ready_file

echo "3"> $temp_path/"s$pdm_num".txt
var1=`date +%H:%M`
if [ "" != "$start_time" ] && [ "$var1" != "$start_time" ]
   then
     
      echo "Download Will be Started at $start_time !"
     
      while [ "$var1" != "$start_time" ]
             do
sleep 10
var1=`date +%H:%M`
      done
     
     
      echo "#################"|cat >> $user/Downloads/PersianDM/report
      date|cat >> $user/Downloads/PersianDM/report
      echo "download process starting now"|cat >> $user/Downloads/PersianDM/report
      echo "#################"|cat >> $user/Downloads/PersianDM/report
     
fi
(
if [ "" != "$end_time" ]
then
        echo "0">$temp_path/"e$pdm_num".txt
        end_status=$(cat $temp_path/"e$pdm_num".txt) 2> /dev/null
       
while [ "$var1" != "$end_time" ] && [ $end_status -ne 2 ]
do
sleep 10
end_status=$(cat $temp_path/"e$pdm_num".txt) 2> /dev/null
var1=`date +%H:%M`
done

if [ $end_status -ne 2 ]
   then
       echo "1">$temp_path/"e$pdm_num".txt
                       aria2_pid=$(cat $temp_path/"p$pdm_num".txt) 2> /dev/null
       kill $aria2_pid 2> /dev/null
       echo "Time is UP!"
       echo "#################"|cat >> $user/Downloads/PersianDM/report
       date|cat >> $user/Downloads/PersianDM/report
       echo "Time is UP!" >> $user/Downloads/PersianDM/report
       echo "#################"|cat >> $user/Downloads/PersianDM/report
   else
       exit
fi   
fi
) &
(
download_process
)


If you do not like Arch use Gentoo and just shut up
 and If you do not like Gentoo use Arch and shut up
finaly If you do not like either use Ubuntu and shut the f*** up

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
خروجی این دستور رو هم بذار لطفا

echo $((128790/1048576))

آفلاین Риал Краесис

  • High Hero Member
  • *
  • ارسال: 1178
  • جنسیت : پسر
  • !!! I FIGHT FOR THE USERS
خروجی این دستور رو هم بذار لطفا

echo $((128790/1048576))



0


If you do not like Arch use Gentoo and just shut up
 and If you do not like Gentoo use Arch and shut up
finaly If you do not like either use Ubuntu and shut the f*** up

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
لطفا پیغام خصوصیت رو چک کن ممنونم

آفلاین javad751

  • Jr. Member
  • *
  • ارسال: 53
  • جنسیت : پسر
سلام من این خطا را گرفتم :'(
javad@javad:~$ pdmt -l "https://www.google.com/images/srpr/logo11w.png"

#########################################
#########################################
### Persian Download Manager Terminal ###
############  (PDMT)  ###################
#########################################
                                         
/home/javad/.persian_download_manager_terminal/final_script: 360: /home/javad/.persian_download_manager_terminal/final_script: cannot create /home/javad/.persian_download_manager_terminal/temp/pdm_number.txt: Directory nonexistent
/home/javad/.persian_download_manager_terminal/final_script: 551: /home/javad/.persian_download_manager_terminal/final_script: cannot create /home/javad/.persian_download_manager_terminal/temp/aria_ready_file: Directory nonexistent
/home/javad/.persian_download_manager_terminal/final_script: 552: /home/javad/.persian_download_manager_terminal/final_script: cannot create /home/javad/.persian_download_manager_terminal/temp/aria_ready_file: Directory nonexistent
/home/javad/.persian_download_manager_terminal/final_script: 553: /home/javad/.persian_download_manager_terminal/final_script: cannot create /home/javad/.persian_download_manager_terminal/temp/aria_ready_file: Directory nonexistent
chmod: cannot access ‘/home/javad/.persian_download_manager_terminal/temp/aria_ready_file’: No such file or directory
/home/javad/.persian_download_manager_terminal/final_script: 556: /home/javad/.persian_download_manager_terminal/final_script: cannot create /home/javad/.persian_download_manager_terminal/temp/s0.txt: Directory nonexistent