Il blog di Gas

Just another WordPress site

Mldonkey and conky

with one comment

In the past conky had some built in features regarding mldonkey that have been dropped later. I launch a script that uses netcat to do the same thing ( at least what I need).


#! /bin/sh
USER=user ## mldonkey user
PASS=pass ## mldonkey password for user
HOST=192.168.1.2 ## host where mldonkey is running
PORT=4000 ##port
(echo "auth $USER $PASS";echo $1;echo q) | nc $HOST $PORT

and then for conkyrc

${execi 50 ml_command bw_stats|grep Down|awk -F " " '{print $1,$2,$3,$10,$11,$12}'}

Written by gas

febbraio 14th, 2008 at 2:12 pm

Posted in English,Linux

Tagged with , , , ,

One Response to 'Mldonkey and conky'

Subscribe to comments with RSS or TrackBack to 'Mldonkey and conky'.

  1. I tested your script and it worked only with a “-a” option for the grep. Exemple:

    ${execi 50 /home/motarion/conky_mldonkey bw_stats | grep -a Down|awk -F ” ” ‘{print $1,$2,$3,$10,$11,$12}’}

    This is because of the “>” in the mldonkey command line result ;)

    Thanks by the way for this !

    motarion

    30 lug 09 at 11:02 pm

Leave a Reply