Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble with screen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Fanatic
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 173
Location: Stocktown

PostPosted: Fri Dec 10, 2004 5:33 am    Post subject: Trouble with screen Reply with quote

I'm trying to use bittorrent with screen. The problem is that when i run screen this happens:

Code:

saving:         Ludacris-The_Red_Light_District-2004-RNS (96.2 MB)
percent done:   0.0
time left:      connecting to peers
download to:    Ludacris-The_Red_Light_District-2004-RNS
download rate:  0.00 kB/s
upload rate:    0.00 kB/s
download total: 0.0 MiB
upload total:   0.0 MiB

[screen is terminating]


I use the exact same syntax when I use bittorrent otherwise and it works without any problems, but with screen it exits just before it starts downloading. :? Screen works perfectly with irssi, it's just bittorrent that's a pain. Anyway, if anyone could help me I'd really appreciate it.
Back to top
View user's profile Send private message
amiatrome
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 180
Location: Campus | Arena Country Club | Home

PostPosted: Fri Dec 10, 2004 7:28 am    Post subject: Reply with quote

Let's have a look at the commands you used to start screen and bt.
_________________
blog | homepage | alias | prompts
Back to top
View user's profile Send private message
Fanatic
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 173
Location: Stocktown

PostPosted: Fri Dec 10, 2004 7:30 am    Post subject: Reply with quote

amiatrome wrote:
Let's have a look at the commands you used to start screen and bt.


Sure

Code:


screen -S file.torrent btdownloadheadless.py --minport 51000 --maxport 52000 --max_allow_in 1000 --max_initiate 1000 --min_uploads 50 --max_uploads 100 file.torrent
Back to top
View user's profile Send private message
Rav70
l33t
l33t


Joined: 11 Feb 2004
Posts: 607
Location: Poland

PostPosted: Fri Dec 10, 2004 7:30 am    Post subject: Reply with quote

I assume you issue a command like:
Code:

screen btdownload blah.torrent

? I usually start a screen with simple
Code:

screen

then (from within the spawned shell)
Code:

btdownload blah.torrent

and then detach as usual. Works without any problems.
Regards,
Rav
_________________
Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead.
Back to top
View user's profile Send private message
amiatrome
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 180
Location: Campus | Arena Country Club | Home

PostPosted: Fri Dec 10, 2004 8:29 am    Post subject: Reply with quote

Hmmm. Seems ok. Perhaps you would like to explore Rav70 and my habits and improvise. I usually do the follwoing.

Code:

# .xinitrc
screen -wipe
cd /mnt/main/bittorrent
screen -S bt -d -m &


then when I want to start a torrent,

Code:

# terminal
srb # alias screen -r bt


Code:
bt 'path/to/torrent' or btu 'url_to_torrent' # aliases again
ctrl-a d


Oh, and I use btdownloadcurses.py. Not ~headless. Never tried it before. Got a date. Maybe I will check it up later. Cya.
_________________
blog | homepage | alias | prompts
Back to top
View user's profile Send private message
planetsheinker
Guru
Guru


Joined: 26 Feb 2004
Posts: 403
Location: Israel

PostPosted: Wed Jan 26, 2005 9:07 pm    Post subject: Reply with quote

Rav70 wrote:
I assume you issue a command like:
Code:

screen btdownload blah.torrent

? I usually start a screen with simple
Code:

screen

then (from within the spawned shell)
Code:

btdownload blah.torrent

and then detach as usual. Works without any problems.
Regards,
Rav

That a good way, but what do you do when the download finish and you want to start another one?
Do you start another copy of screen?
Or you somehow manage to use the initial copy of the screen? How do you do it?
_________________
Does God made man up, or was it the other way around? - Friedrich Nietzsche.
Back to top
View user's profile Send private message
Leffe
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 145
Location: Sweden

PostPosted: Thu Jan 27, 2005 12:31 pm    Post subject: Reply with quote

planetsheinker wrote:

Or you somehow manage to use the initial copy of the screen? How do you do it?


Reattach the screen (I only use one screen session as my login shell, so I'm not sure of how to choose which one to reattach), close the btdownload and start a new one. You could even create a few screen windows (^a ^c to create, ^a space to go to next) in there if you wanted to download several torrents with one screen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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