GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all, I have satellite Internet service, which is still subject to the silly "Fair Access Policy." I have a roughly 350MB "bucket" which refills at a steady rate which is a little faster than good dial-up. So, I can download around 370MB all at once, then it slows down. I don't like to FAP myself, so I was just wondering if there is a program in Linux (Debian, specifically) to stop a download (700M ISO, for example) after a certain amount (~350M).
$ wget --help | grep continue
-c, --continue ... resume getting a partially-downloaded file
$ wget -q http://www.site.example/file.iso &
$ while [ $(ls -l file.iso | awk '{print $5}' -lt 350000000 ]; do true; done
$ kill -INT $!
$ sleep 3600 # until you have more bandwidth
$ wget -c -q http://www.site.example/file.iso &
You might want to put this inside a shell script, perhaps in a loop, and replace 350000000 with 350MB *plus* the file size before downloading. `$!' is the process ID of the process last put into the background. The rest have manual pages (see also man bash).
I'll happily explain if you need me to. If so, please tell me the exact sequence of commands you have already tried, your reasoning behind it, and what you don't understand. script(1) might come in handy for this.
Maybe a bit obvious, but still...
Do you have enough disk space left? I downloaded an ISO once and it always stopped at 500MB, wouldn't budge any longer. When I suddenly looked at the free disk space, I noticed I only had 500MB left...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.