BitTorrent rpm

Dario Lesca d.lesca at solinos.it
Sun Feb 22 00:21:38 UTC 2004


Il dom, 2004-02-22 alle 00:03, Charles Howse ha scritto:

> Sooooo..., I uninstalled all that, re-installed the original rpm from 
> http://torrent.dulug.duke.edu/btrpms/, and ran the command it reccomends from 
> a shell, and I'm now downloading FC2-test-binary-i386 at 123.7 KB/s.

Ok, thank, but ... this simple shell script is not a good idea?

---------[start]---------
#!/bin/bash
# Bit Torrent Get Files (d.lesca at solinos.it)
# setup:
#  1) setup bittorrent.rpm file (http://torrent.dulug.duke.edu/btrpms/)
#  2) copy this script to /usr/local/bin/.
#  3) insert this into /etc/mailcap:
#     application/x-bittorrent; /usr/local/bin/btget %s
#  4) reload your browser
#

BTGET_DOWNLOAD_DIR=~
BTGET_MAX_UPLOAD_RATE=350

# If you want to change the two value over set ...
test -r /etc/btget.conf && source /etc/btget.conf
test -r ~/.btgetrc && source ~/.btgetrc

cd $BTGET_DOWNLOAD_DIR

case "$1" in
http://|ftp://) btfile="--url $1" ;;    # URL
"") echo "Usage: $0 {URL|file.torrent}"; exit 2 ;;
*) btfile="$1" ;;                       # .torrent file
esac

xterm -e "
btdownloadcurses.py --max_upload_rate $BTGET_MAX_UPLOAD_RATE $btfile;
echo -e \"\nFinished ($?), Press any key to close ...\c\";
read -n 1 a;
exit 0;
"
exit 0
---------[end]---------

-- 
Dario Lesca <d.lesca at solinos.it>





More information about the fedora-list mailing list