[WBEL-users] Bittorrent seeds

Johnny Hughes mailing-lists@hughesjr.com
Wed, 18 Feb 2004 19:06:24 -0600


--=-USpnavi+yg1NudFvWLy6
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I think a kill command would work ... I wrote a script (attached) ... I
tested it and it works for me


Substitute 6 for 8 in another script .... call one when you want to
start the 8 kb/sec ... call the other when you want to start to 64
kb/sec.

-Johnny Hughes


On Wed, 2004-02-18 at 16:04, Eric Wood wrote:
> Johnny Hughes wrote:
> > All,
> > If you have the iso's on your harddrive and already have bittorrent on
> >
> > btdownloadcurses.py -max_upload_rate 32
> > http://whiteboxlinux.org/liberation-final-bins-good.torrent
> 
> I want to:
> During the day:
> 
> kill `ps -e | grep btdownload| awk '{ $1 = $1; print }' |
>  cut -f1 -d" "`
> btdownloadheadless.py -max_upload_rate 8
> http://whiteboxlinux.org/liberation-final-bins-good.torrent
> 
> During the night:
> 
> kill `ps -e | grep btdownload| awk '{ $1 = $1; print }' |
>  cut -f1 -d" "`
> btdownloadheadless.py -max_upload_rate 64
> http://whiteboxlinux.org/liberation-final-bins-good.torrent
> 
> I can call this from cron.  Is there a more elegant way to close a headless
> BT?
> 
> -eric wood
> 
> _______________________________________________
> Whitebox-users mailing list
> Whitebox-users@beau.org
> http://beau.org/mailman/listinfo/whitebox-users

--=-USpnavi+yg1NudFvWLy6
Content-Disposition: attachment; filename=start_wbel_bittorrent
Content-Type: text/x-sh; name=start_wbel_bittorrent; charset=
Content-Transfer-Encoding: 7bit

#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DWN_LOC=/root
BT_PID=`ps -ef | grep btdownload | grep -v grep | awk '{print $2}'`
kill $BT_PID
sleep 10
cd $DWN_LOC
nohup python /usr/bin/btdownloadcurses.py --max_upload_rate 8 http://whiteboxlinux.org/liberation-final-bins-good.torrent > /dev/null 2>&1 &

--=-USpnavi+yg1NudFvWLy6--