[Libtorrent-devel] any way to schedule based on day of week?

Peter Van Biesen peter.vanbiesen at vlafo.be
Wed Mar 7 16:18:45 UTC 2007


Why don't you use a watch directory and move your torrent files in and out of 
there with a simple cron command ? That's what I do ... and this works 
perfectly ! 

Kindest regards,

Peter.

On Wednesday 07 March 2007 17:08, Dan Pritts wrote:
> 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
> _______________________________________________
> Libtorrent-devel mailing list
> Libtorrent-devel at rakshasa.no
> http://rakshasa.no/mailman/listinfo/libtorrent-devel

-- 
Peter Van Biesen
Sysadmin VAPH

tel: +32 (0) 2 225 85 70
fax: +32 (0) 2 225 85 88
e-mail: peter.vanbiesen at vlafo.be
PGP: http://www.vlafo.be/pgpkeys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rakshasa.no/pipermail/libtorrent-devel/attachments/20070307/4357ea6a/attachment.bin


More information about the Libtorrent-devel mailing list