Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Running a script at server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sat Dec 01, 2012 9:29 pm    Post subject: [Solved] Running a script at server Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Sat Dec 01, 2012 10:41 pm    Post subject: Reply with quote

Place the job in the background, redirect all its output away from your terminal, and disown it.
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Sat Dec 01, 2012 10:50 pm    Post subject: Reply with quote

use nohup or screen.
_________________
http://wojia.be
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sun Dec 02, 2012 11:48 am    Post subject: Reply with quote

Yes, it is really output problem.
I tried the simplest for me nohup - works fine.

Thanks you all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum