View previous topic :: View next topic |
Author |
Message |
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sat Dec 01, 2012 9:29 pm Post subject: [Solved] Running a script at server |
|
|
I have a server at my home network (running samba, transmission-daemon). I communicate with server via putty shell.
And I want to use server to download files. I put this script at server:
Code: | wget url1
wget url2
wget url3
...
wget urlNNN |
I connecting to the server, navigating to script location and starting this script. All the items downloading sequentially. All fine till my client is connected to server.
But if I disconnecting or shutting client down, script downloads current item and stops.
I tried to put all the urls to file and run wget -B ...... -i url.list. The same problem.
How to force server to download all the urls, regardless connected client to server or not?
Last edited by creaker on Sun Dec 02, 2012 11:48 am; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21489
|
Posted: Sat Dec 01, 2012 10:41 pm Post subject: |
|
|
Place the job in the background, redirect all its output away from your terminal, and disown it. |
|
Back to top |
|
|
xming Guru
Joined: 02 Jul 2002 Posts: 441
|
Posted: Sat Dec 01, 2012 10:50 pm Post subject: |
|
|
use nohup or screen. _________________ http://wojia.be |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sun Dec 02, 2012 11:48 am Post subject: |
|
|
Yes, it is really output problem.
I tried the simplest for me nohup - works fine.
Thanks you all. |
|
Back to top |
|
|
|