View previous topic :: View next topic |
Author |
Message |
Fanatic Apprentice
Joined: 02 May 2004 Posts: 173 Location: Stocktown
|
Posted: Fri Dec 10, 2004 5:33 am Post subject: Trouble with screen |
|
|
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 |
|
|
amiatrome Apprentice
Joined: 28 Jun 2004 Posts: 180 Location: Campus | Arena Country Club | Home
|
Posted: Fri Dec 10, 2004 7:28 am Post subject: |
|
|
Let's have a look at the commands you used to start screen and bt. _________________ blog | homepage | alias | prompts |
|
Back to top |
|
|
Fanatic Apprentice
Joined: 02 May 2004 Posts: 173 Location: Stocktown
|
Posted: Fri Dec 10, 2004 7:30 am Post subject: |
|
|
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 |
|
|
Rav70 l33t
Joined: 11 Feb 2004 Posts: 607 Location: Poland
|
Posted: Fri Dec 10, 2004 7:30 am Post subject: |
|
|
I assume you issue a command like:
Code: |
screen btdownload blah.torrent
|
? I usually start a screen with simple
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 |
|
|
amiatrome Apprentice
Joined: 28 Jun 2004 Posts: 180 Location: Campus | Arena Country Club | Home
|
Posted: Fri Dec 10, 2004 8:29 am Post subject: |
|
|
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 |
|
|
planetsheinker Guru
Joined: 26 Feb 2004 Posts: 403 Location: Israel
|
Posted: Wed Jan 26, 2005 9:07 pm Post subject: |
|
|
Rav70 wrote: | I assume you issue a command like:
Code: |
screen btdownload blah.torrent
|
? I usually start a screen with simple
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 |
|
|
Leffe Tux's lil' helper
Joined: 07 Apr 2004 Posts: 145 Location: Sweden
|
Posted: Thu Jan 27, 2005 12:31 pm Post subject: |
|
|
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 |
|
|
|