You are not logged in.
Pages: 1
hi guys
if i m downloading file with "wget" how can i stop/pause it?
later if i want to download that stopped/paused file how can i resume it?
and can i limit or change wget downloading speed in realtime while i m downloading file?
Offline
You can use linux's job control to pause/resume. When downloading, hit Ctrl-Z to background wget, thus pausing it. Enter "fg" at the command prompt to bring it back to the foreground, and get it started again.
--limit-rate=amount
Limit the download speed to amount bytes per second. Amount may be
expressed in bytes, kilobytes with the k suffix, or megabytes with the
m suffix. For example, --limit-rate=20k will limit the retrieval rate
to 20KB/s. This is useful when, for whatever reason, you don't want
Wget to consume the entire available bandwidth.
This option allows the use of decimal numbers, usually in conjunction
with power suffixes; for example, --limit-rate=2.5k is a legal value.
Note that Wget implements the limiting by sleeping the appropriate
amount of time after a network read that took less time than specified
by the rate. Eventually this strategy causes the TCP transfer to slow
down to approximately the specified rate. However, it may take some
time for this balance to be achieved, so don't be surprised if limiting
the rate doesn't work well with very small files.
Offline
This is all covered in the man page for wget. Use "man wget" in a terminal to view the info. It's going to do a much better job that I could explaining it.
Offline
ctrl-z doesnot stop it it just hides it to background making use of all bandwidth and i know about limit rate but can i implement it in realtime while downloading.
i have read man pages but it does not cleard up these questions thats why i ask on forum.
Offline
ctrl-z doesnot stop it it just hides it to background making use of all bandwidth and i know about limit rate but can i implement it in realtime while downloading.
False. Ctrl-Z is the "suspend" key combination. It suspends the process. Typing 'bg' after doing a Ctrl-Z will resume it and send it to the background. Typing 'fg' will bring it back to the foreground instead.
Offline
man wget
-c
--continue
Continue getting a partially-downloaded file. This is useful when
you want to finish up a download started by a previous instance of
Wget, or by another program. For instance:-b
--background
Go to background immediately after startup. If no output file is
specified via the -o, output is redirected to wget-log.
Do these not do the same exact thing?
Last edited by jacko (2008-01-02 21:52:11)
Offline
man wget
-c
--continue
Continue getting a partially-downloaded file. This is useful when
you want to finish up a download started by a previous instance of
Wget, or by another program. For instance:-b
--background
Go to background immediately after startup. If no output file is
specified via the -o, output is redirected to wget-log.Do these not do the same exact thing?
no, --continue will resume a partially downloaded file, which is what I believe the OP is looking for. For quick and dirty pause & resume, i just CTRL-C while wget is downloading to kill the process, then run wget with same url with --continue to resume the downloading. This hasn't given me any problems, but depending on what server you are downloading from it may.
Offline
jacko wrote:man wget
-c
--continue
Continue getting a partially-downloaded file. This is useful when
you want to finish up a download started by a previous instance of
Wget, or by another program. For instance:-b
--background
Go to background immediately after startup. If no output file is
specified via the -o, output is redirected to wget-log.Do these not do the same exact thing?
no, --continue will resume a partially downloaded file, which is what I believe the OP is looking for. For quick and dirty pause & resume, i just CTRL-C while wget is downloading to kill the process, then run wget with same url with --continue to resume the downloading. This hasn't given me any problems, but depending on what server you are downloading from it may.
I meant these as two different things. I don't even know why one would wanna use the -b switch or bg command for that matter. Its not like the terminal window is closeable after u using the bg command, or is it?
I knew what the -c switch did and figured that was exactly as the thread starter needed.
Offline
I meant these as two different things. I don't even know why one would wanna use the -b switch or bg command for that matter. Its not like the terminal window is closeable after u using the bg command, or is it?
It should be. Try it.
Offline
Pages: 1