Notes: BitTorrent on the command-line
I wanted to run torrents from my Linux server, rather than running them on my Windows laptop. Further, I wanted a system that needed very little intervention.
To start the torrent daemon, I run the following:
(/usr/bin/btlaunchmany.py /home/share/video/torrents/active/ --save_in /home/share/video/torrents/ --minport 6885 --max_upload_rate 10 > /home/share/video/torrents/torrent.log 2>&1 &) &
To parse the torrent log, I use a small perl script, which runs as a daemon.
To start or stop torrents, I simply place the torrent file in a directory, or remove the torrent from the directory. The torrent daemon picks them up automagically. The directory (in the above example) is:
/home/share/video/torrents/active/

 


perljam.net home