LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-07-2008, 01:20 AM   #1
musther
Member
 
Registered: Sep 2007
Posts: 36

Rep: Reputation: 15
rtorrent - up/down scheduling


My ISP have recently offered me the opportunity to pay a little more for on-peak usage, in return for which they give me unlimited off peak usage.

I use rtorrent as a bittorrent client on an old laptop. I know I can set up scheduling with commands like:

Code:
####schedule an unlimited download throttle at 00:15
schedule = throttle_1,00:00:15,24:00:00,download_rate=0
#####schedule an download throttle at 06:00
schedule = throttle_2,06:00:00,24:00:00,download_rate=50
But, as you can see from the comment, a rate of 0 means unlimited to rtorrent. So, my question is how can I tell rtorrent that I don't want any uploading and downloading between 8am and midnight?

Thanks in advance.
 
Old 06-07-2008, 02:35 PM   #2
Oliver_H
Member
 
Registered: May 2008
Distribution: Slackware, FreeBSD
Posts: 47

Rep: Reputation: 16
>So, my question is how can I tell rtorrent that I don't want any uploading

I don't think this is possible, but this is know as 'asocial' behaviour in the Torrent-community.

You probably know the hompage with the guides already, http://libtorrent.rakshasa.no/
 
Old 06-07-2008, 05:31 PM   #3
musther
Member
 
Registered: Sep 2007
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Oliver_H View Post
I don't think this is possible, but this is know as 'asocial' behaviour in the Torrent-community.
Thanks for quoting me out of context, I said I didn't want it to do any uploading OR downloading during on peak time. If the torrent community is arrogant enough to think that's 'asocial', then they're welcome to it. On the other hand, if you just misunderstood what I said.... :-)

Anyway, I've set up a couple of bash scripts, rtstart and rtstop. rtstart checks the time and when appropriate starts rtstop in the background and then runs rtorrent. rtstop in turn checks the time and when appropriate, terminates rtorrent, leaving the rtstart loop to continue checking the time, ready to start rtorrent again when it's due...
 
Old 06-10-2008, 10:37 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
How many times a day do you need to turn rtorrent on & off?

Would it help to use a cron job?
 
Old 06-10-2008, 04:11 PM   #5
musther
Member
 
Registered: Sep 2007
Posts: 36

Original Poster
Rep: Reputation: 15
Well, originally I was going to use a cron job, but as rtorrent doesn't run as a daemon, and needs a terminal on which to run, using cron won't work.

Anyway, I've had my script method working for a good few days now, and it's flawless. :-)
 
  


Reply


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
rtorrent no connections danielph Linux - Desktop 5 01-19-2009 04:16 PM
rtorrent on Gentoo properganda Linux - Newbie 2 02-24-2008 09:41 AM
About rtorrent satimis Linux - Software 8 02-19-2008 09:36 AM
rtorrent configure Cynagen Linux - Software 1 12-27-2007 12:32 PM
About rtorrent satimis Linux - Software 0 05-10-2007 11:34 AM


All times are GMT -5. The time now is 12:38 AM.

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