In any case, I'm happy to see Transmission as the default bittorrent application in Ubuntu Hardy, it's a great app. Nice work devs
![Smile :)](./images/smilies/icon_smile.gif)
Code: Select all
#!/bin/sh
for i in `/usr/bin/transmission-remote -l -n uname:passwd | /bin/grep -v Ratio | /bin/grep Done | /usr/bin/awk '{ print $1 }'`
do
/usr/bin/transmission-remote -n uname:passwd -t $i -S
done
Code: Select all
* * * * * /home/user/.bts/bin/trpause.sh >/dev/null 2>&1
Code: Select all
#!/bin/sh
TR_R=/usr/bin/transmission-remote
PORT=9091
USER=admin
PASS=password
RATIO=1.10
for i in `$TR_R $PORT -l -n $USER:$PASS | \
awk '$3 ~ "Done" && $6 >= R && $7 !~ "Stopped" { print $1 }' R=$RATIO`
do
$TR_R $PORT -n $USER:$PASS -t $i -S
done
Code: Select all
#!/bin/bash
TR_R=/usr/bin/transmission-remote
PORT=9091
USER=user-name
PASS=password
RATIO=1.10
declare -a EXCEPTIONS=( )
for i in `$TR_R $PORT -l -n $USER:$PASS | \
awk '$3 ~ "Done" && $6 >= R && $7 !~ "Stopped" { print $1 }' R=$RATIO`
do
skip=0
for j in ${EXCEPTIONS[@]}
do
if [ $j -eq $i ]; then
skip=1
fi
done
if [ $skip -eq 0 ]; then
$TR_R $PORT -n $USER:$PASS -t $i -i | \
awk '/Ratio/ { if ($2 >= R) { print "Stopping: ", a[2]; exit 0; } else exit 1; }
/Name/ { split($0, a, ":"); }' R=$RATIO &&
$TR_R $PORT -n $USER:$PASS -t $i -S
fi
done
Look at r7888 more closely, it's already in the GTK+ client now...thomasjack wrote:Looks like seed ratio limiting was added to libtransmission 3 days ago: http://trac.transmissionbt.com/changeset/7888. Then two days ago there was "attempt 1" to use this in the macosx client: http://trac.transmissionbt.com/changeset/7892.
Bet this feature is coming soon for the GTK+ client...