LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-17-2005, 04:03 PM   #1
spx2
Member
 
Registered: Dec 2005
Distribution: debian
Posts: 160

Rep: Reputation: 30
about wget


how can i make wget go in background or stop it and continue that download later ?
 
Old 12-17-2005, 04:03 PM   #2
spx2
Member
 
Registered: Dec 2005
Distribution: debian
Posts: 160

Original Poster
Rep: Reputation: 30
will wget still work while its in background ?
 
Old 12-17-2005, 04:08 PM   #3
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
not sure what you mean by "in the background" afaik it is a terminal aplication so doesn't have a background to go into, but hitting Ctrl+C will terminate the process, and if you resart with the same arguments in the same folder it should resume.
 
Old 12-17-2005, 04:15 PM   #4
spx2
Member
 
Registered: Dec 2005
Distribution: debian
Posts: 160

Original Poster
Rep: Reputation: 30
no it does not resume.
also anybody have any ideea where wget stores temp files downloaded ?
i saw this -c parameter for continuing download now ill try it
 
Old 12-17-2005, 04:18 PM   #5
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
wget --help

U want -c and -b
 
Old 12-17-2005, 04:45 PM   #6
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
The standard background option for any command is appending &
Quote:
wget <options> &
But as jollyjoice pointed out, wget has a special option to do the same.
wget will download the files into the current working directory of the shell it was started in.
 
Old 12-17-2005, 04:45 PM   #7
spx2
Member
 
Registered: Dec 2005
Distribution: debian
Posts: 160

Original Poster
Rep: Reputation: 30
i get this:
Code:
[stef@localhost stef]$ wget -cb ftp://sunsite.icm.edu.pl/pub/linux/distributions/sunsite-distributions/vectorlinux/veclinux-5.0/iso-soho/VLSOHO-5.0.1.iso
Continuing in background, pid 3429.
Output will be written to `wget-log'.
and how can i put the process back into foreground?

Last edited by spx2; 12-17-2005 at 04:47 PM.
 
Old 12-19-2005, 04:37 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Probably, you can try:
jobs
=> gives a list of running background jobs and their numbers.
=> Since wget is probably your first and only job (marked as [1] <job status> wget...
Then use:
fg %<jobnr>
In your case, probably:
fg %1

See the man page of your shell for information on "fg" (put job in foreground), "bg" (put job in background), "&", etc.
To know your shell, type:
echo $SHELL
=> It will tell you something like "/bin/bash", "/bin/sh" or "/bin/csh" probably.
Then use:
man bash
(or replace bash with sh/csh/... if needed)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't wget!! aru_04 Linux - General 5 08-13-2005 06:07 AM
wget noir911 Linux - Newbie 8 07-30-2005 09:57 AM
wget Harp00 Linux - Newbie 4 11-15-2004 08:27 PM
wget toastermaker Linux - Software 4 11-13-2004 11:59 AM
wget filex Linux - Security 4 09-08-2004 09:02 PM


All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration