maparus Posted August 5, 2006 Report Share Posted August 5, 2006 I have a slow dialup connection and I do most of my downloading of large files at night. What would the the command line look like for dounloading Mozilla-thunderbird 1.5, mozilla- firefox 1.5 and say gimp 2.3 and then turn the computer off after all downloads are finished. many thanks maparus Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted August 5, 2006 Report Share Posted August 5, 2006 (edited) wget <<url for blah>> && wget <<url for blah>> && wget <<url for blah>> && halt or wget $(urpmq --sources mozilla-thunderbird) && wget $(urpmq --sources mozilla-firefox) && halt && means to wait for successful completion of previous command before executing. Just & means it can start immediately after the previous one starts. There are also GUI download accelerators that have the option to run certain commands when all downloads finish. Edited August 5, 2006 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
neddie Posted August 5, 2006 Report Share Posted August 5, 2006 That's cool! I was about to say that it didn't work for me, it just gave a "file not found" error, but then I checked and sure enough the 2005 repositories have been removed from my urpmi server! So I changed my urpmi to a different server and then it works great! (I didn't try the 'halt' bit, but got two tiny doc rpms and then did && cal, which worked). Another trick to go in the bag! :) Just two things to note - firstly you need a --sources on the second urpmq, and secondly if for some reason one of the wgets fails, then it won't get to the halt bit. So if something goes wrong, the computer will stay on all night. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted August 5, 2006 Report Share Posted August 5, 2006 (edited) Just two things to note - firstly you need a --sources on the second urpmq, and secondly if for some reason one of the wgets fails, then it won't get to the halt bit. So if something goes wrong, the computer will stay on all night. Fixed. And, yes, if something goes wrong, it won't get to the 'halt'. One would actually have to write a script to handle errors and then halt, in that case. Edited August 5, 2006 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.