Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-01-2010, 07:26 AM   #1
Registered: Oct 2009
Posts: 31

Rep: Reputation: 15
Question run wget background....

I connect to my remote server machine using my laptop. I connect to that server using 'ssl' and put downloads using wget. Is there a way in 'wget' that enable running 'wget' at background level.

For example I put my download in my server by connecting to that using my laptop. Download may takes 10 hours. I needs a way that when I shout down my laptop or close my laptop wget console window it should not effect to the server side download which is launched via my laptop. Any idea please....
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-01-2010, 08:49 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
You can use nohup to prevent a job from being killed when the shell that spawned it exits, eg:
nohup wget ... &
(the ampersand puts it in the background, the output is directed to nohup.out).

You can also use disown to disown a process that is already running (again, so that the shell exit does not kill the child process).

A more versatile way is to use screen to create terminal sessions that can be disconnected and reconnected.

Last edited by neonsignal; 02-01-2010 at 08:59 AM.
3 members found this post helpful.
Old 02-01-2010, 09:22 AM   #3
LQ Newbie
Registered: Feb 2010
Location: Pune, India
Posts: 10

Rep: Reputation: 1
Initially, I used 'nohup' to start my virtualbox machines on a headless server, only later to find out that screen is much more reliable and a general solution. If there is anything to be carried for a long time over the network on a remote machine, the screen command is a good habit.

I hope the others can learn this early.
Old 02-14-2010, 02:28 PM   #4
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
try reading man wget
wget -b runs in the background and writes any messages to a file wget-log


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
wget and scp in background nima0102 Linux - Server 3 05-12-2009 10:09 AM
Background http/ftp downloader software wtihout GUI (wget wrapper). ErV Linux - Software 3 09-01-2008 05:43 PM
Run in the background even after logging off rust8y Linux - Newbie 13 05-19-2006 07:38 AM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 01:27 AM
Run a program in the background??? KaptinKABOOM Linux - Software 5 07-06-2004 07:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 AM.

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