Mldonkey and conky

febbraio 14, 2008

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}'}

tags: , , , ,
posted in English, Linux by gas

Follow comments via the RSS Feed | Lascia un commento | Trackback URL

1 Comment to "Mldonkey and conky"

  1. motarion wrote:

    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 !

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org