I use wget
as a downloader. It is an excellent, outstanding application. I integrated it with Firefox using Flashgot.
How can I resume a download which was stopped by a CTRL+C key press or a shutdown in this configuration of wget?
downloadsfirefoxfirefox-extensionssuspendwget
I use wget
as a downloader. It is an excellent, outstanding application. I integrated it with Firefox using Flashgot.
How can I resume a download which was stopped by a CTRL+C key press or a shutdown in this configuration of wget?
Best Answer
You started a file download in
wget
usingflashgot
plugin. Aswget
didn't remember last activity (and you are not from terminal and no bashhistory
) normally you can't resume the download unless you provide a correct URI with -c inwget
.case 1: Download cancel by Ctrl C
Open with a text editor
/tmp/flashgot.*******.default/flashgot-*.fgt
At the end of file you can see like
either copy the whole parameter and pass it to
wget
aswget --trust-server-names -c -O jre-7u21-linux-x64.rpm --directory-prefix=/home/totti/Downloads --referer=http://java.com/en/download/linux_manual.jsp\?locale=en --load-cookies=/tmp/flashgot.7gavixy1.default/cookies --header=Cookie:s_vi=\[CS\]v1\|28BA8A90050109CA-6000011540153427\[CE\]\;\ --user-agent=Mozilla/5.0\ \(X11\;\ Ubuntu\;\ Linux\ i686\;\ rv:16.0\)\ Gecko/20100101\ Firefox/16.0 http://sdlc-esd.sun.com/ESD6/JSCDL/jdk/7u21-b11/jre-7u21-linux-x64.rpm\?AuthParam=1366627766_80a413ae29c4b4d2e12ac7e334d61847\&GroupName=JSC\&FilePath=/ESD6/JSCDL/jdk/7u21-b11/jre-7u21-linux-x64.rpm\&File=jre-7u21-linux-x64.rpm\&BHost=javadl.sun.com
or just use
wget -c URI
case 2: Shutdown
This is a bad thing as
/tmp
is cleared every shutdown. You have to find the URI manually. Another option is, before start downloading change temp dir forflashgot
from preference -> advanced -> temp directory to a persistent folder (say ~/tmp).Updates:
403 forbidden error
Because some URI are dynamically generated. So after some time it expire(after closing connection to the site). In such cases you have to obtain a new URI and download can be resumed using
wget -c URI
. Some cases the file name are also dynamic (or no file name at all), so-o filenameofexistingfile
option is also needed.Note that wget is a download manager not a video downloader. So use of a video downloader such as
flareget
JDownloader
or plugin for your browser such assavefromnet
, video download helper is prefered. Because they automate the process of obtaining new URI from the URL. See question how to download youtube video (search) for easyly download videos.