LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bg/fg ? (https://www.linuxquestions.org/questions/linux-newbie-8/bg-fg-108340/)

chup 10-25-2003 10:22 AM

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?

Kurt M. Weber 10-25-2003 10:31 AM

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).

tgflynn 10-25-2003 10:35 AM

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

chup 10-25-2003 11:32 AM

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

tgflynn 10-25-2003 12:01 PM

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

chup 10-25-2003 12:07 PM

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!


All times are GMT -5. The time now is 11:40 PM.