Cron to schedule torrent

Most of them , who have limits on there download size and the ISP who be alive for some fixed amount of time , its not any easy task to manage your download.

Scheduling torrent is a big issue , if u are not using bit-torrent , and u prefer Transmission or any other client , here how can do it :
{I m scheduling it to stat at 2AM and end at 8AM}


Step 1 : crontab -u -e

If , you are doing this for the first time , you would not have any cron files so you would get an o/p like :

Select an editor. To change later, run 'select-editor'.
1. /usr/bin/vim.tiny
2. /bin/ed
3. /bin/nano <---- easiest Choose 1-3 [3]: 1 { give your choice} I would go for 1 , though 3 is the easiest , i like vim :)

Step 2 : Type these line

02 02 * * * /bin/transmission
00 08 * * * /bin/kill transmission

Save and quite , the method depends on your choice of the editor.

Step 3 : Open all the torrents you want to download with transmission , and then exit it , then go to bed , it would start at sharp to 2 Am and end and 8 Am :)


Logic behind :

cron - daemon to execute scheduled commands (Vixie Cron).
crontab - maintain crontab files for individual users (V3), its fields are as below
# .---------------- >> minute (0 - 59)
# | .------------- >> hour (0 - 23)
# | | .---------- >> day of month (1 - 31)
# | | | .------- >> month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- >> day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
* * * * * command to be executed

-u for the user and -e to edit the crontabs.

P.S : This the solution i came up with , there may be many cleaner ways to do this.
If u know better methods please do comment








Share this