[Libtorrent-devel] any way to schedule based on day of week?
Dan Pritts
danno at umich.edu
Wed Mar 7 16:08:25 UTC 2007
Thanks for the tip. I've used screen for years but didn't
know that it could do this.
screen rocks.
On Wed, Mar 07, 2007 at 12:22:29AM -0500, Jason wrote:
> I solved this by running rtorrent in a screen session named "torrent"
> then setting up a cron job that ran this command:
>
> screen -S torrent -X eval 'stuff \"ccccssss\"'
>
> Where the characters "asd" and "zxc" can be used in place of the Cs
> and Ss to change the throttling, just like you were inside rtorrent.
>
> Jason
>
> On 3/5/07, Dan Pritts <danno at umich.edu> wrote:
> >Can anyone suggest a way to do "schedule" operations
> >based on the day of the week?
> >
> >
> >I found this (more or less) in the wiki:
> >
> >schedule = throttle_1,00:30:00,24:00:00,upload_rate=0
> >schedule = throttle_2,07:00:00,24:00:00,upload_rate=37
> >
> >which is great for scheduling things that happen every day.
> >
> >I'd like to do something similar to unthrottle on weekdays
> >while i'm at work.
> >
> >simply doing 5 sets of these with 168:00:00 between them wouldn't
> >work, since it still wouldn't know which days of the week to run.
> >
> >I suppose I could hack up a little perl script to create a config
> >file for me based on day of week. Any other suggestions?
> >
> >danno
> >--
> >dan pritts
> >danno at umich.edu
> >734-929-9770
> >_______________________________________________
> >Libtorrent-devel mailing list
> >Libtorrent-devel at rakshasa.no
> >http://rakshasa.no/mailman/listinfo/libtorrent-devel
> >
danno
--
dan pritts
danno at umich.edu
734-929-9770
More information about the Libtorrent-devel
mailing list