retnet

Download dari terminal otomatis resume download

Jun 15th, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. Download pakai wget di 'Terminal', dlm kondisi jalur koneksi internet yg putus-nyambung :
  2.  
  3. wget -c -t 0 --timeout=20 --waitretry=20 http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-i386.iso
  4.  
  5. keterangan :
  6. -c = lanjutkan donlot yg terputus
  7. -t 0 = mengulang donlot terus-menerus s/d selesai
  8. --timeout=20 : wget akan menghentikan proses donlot jika dlm 20 detik tidak terdapat perubahan ukuran donlot (alias donlot macet)
  9. --waitretry=20 : wget akan melakukan donlot ulang setelah 20 detik setelah donlot terhenti
  10.  
  11. Dg metode tsb diatas maka akan terjadi 'auto reconnecting' dlm proses donlot, jika hanya memakai opsi '-c' atau '-c -t 0' seandainya terjadi gangguan koneksi maka proses donlot akan terhenti.
Add Comment
Please, Sign In to add comment