LinuxQuestions.org
Visit Jeremy's Blog.
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 10-25-2003, 11:22 AM   #1
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 30
bg/fg ?


i have a simple question.
i started a wget download in a terminal in x, then i had to kill x, but i know wget still continues downloading.
now its still downloading, but i dont know of any way to ' bring it back to foreground' , ie see the progress of the download again.
i have tried the bg and fg commands, but it isnt listed when i run jobs so i cant use that.
could anybody please help me?
 
Old 10-25-2003, 11:31 AM   #2
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 33
Are you sure it's still downloading? Generally, when you kill a process's controlling terminal you kill that process as well (there are ways to get around this, and they're fairly simple, but I just don't think that's the case).
 
Old 10-25-2003, 11:35 AM   #3
tgflynn
Member
 
Registered: Oct 2003
Location: Rochester, New York (USA)
Distribution: Debian
Posts: 119

Rep: Reputation: 15
You say you know wget is still running. Do you know this because you actually see it in the list of processes ?

I find it unlikely that a wget process running in an xterm would survive killing X. Are you sure you didn't just switch virtual consoles ?

If things are as you say I personally don't know of anyway to reattach a terminal to such a process. fg and bg are used by the shell to manage multiple jobs that have been launched from the shell. They wouldn't work in your case.

Tim
 
Old 10-25-2003, 12:32 PM   #4
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Original Poster
Rep: Reputation: 30
hmm, thanks for your replies
but, wget is still listed in the process list, so its still running i guess...
and im pretty sure i didnt switch virtual consoles, i pressed ctrl-alt-backspace to kill x
 
Old 10-25-2003, 01:01 PM   #5
tgflynn
Member
 
Registered: Oct 2003
Location: Rochester, New York (USA)
Distribution: Debian
Posts: 119

Rep: Reputation: 15
Hmm, might you have started wget in background mode (option -b or --background) ?

Depending on what you're downloading you might just want to kill wget and restart it with the mirror or timestamp option to only download files newer than those already on your disk. You can also use the continue option (--continue) to resume downloading of partially downloaded files. See the wget man page for details.

Tim
 
Old 10-25-2003, 01:07 PM   #6
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Original Poster
Rep: Reputation: 30
i didnt start it in background mode
yeah i figured the easiest way to see it again is to just kill it, and use the -c option to resume my download.
thanks for the help!
 
  


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




All times are GMT -5. The time now is 06:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration