aMule Forum

English => aMule Help => Topic started by: powtrix on January 20, 2004, 05:04:19 PM

Title: how to set stats signature
Post by: powtrix on January 20, 2004, 05:04:19 PM
hi, my aStats is working fine, i just want to know how i could generate automatically the stat updates. to upload in one website etc..
please :baby:
Title: Try to use crontab ...
Post by: BigBob on January 20, 2004, 06:24:28 PM
Hi,

Here is an example to upload your aStats statistics on your web page (please modify with your values) :

- Put in your crontab something like that (crontab of the user aMule running) :

Code: [Select]
# Run xmule statistics every 15 minutes:
0,15,30,45 * * * * /usr/bin/logger "aStats updating, waiting ..." >/dev/null 2>&1 ;/usr/local/bin/aStats --web >/dev/null 2>&1 ; /usr/bin/lftp -c "o ftp.your.web.page -u username,password;put /home/bigbob/.aMule/bigbob-amulestats.html -o index.html;;put /home/bigbob/.aMule/aMule-online-sign.png" >/dev/null 2>&1 ; /usr/bin/logger "aStats update done ..." >/dev/null 2>&1

In this example i use lftp (an ftp client), but you can use any another one ...

A++
Title: Re: how to set stats signature
Post by: powtrix on January 21, 2004, 06:16:29 AM
:baby: :baby: THANKSSSSSSSSSSSS Mr. Slackware :rolleyes:
im using slack too

a bit fix for me:
the upload was broking image dunno why, so i did:
Code: [Select]
...; /usr/local/bin/aStats --web ; /usr/bin/lftp ....just cut >/dev/null 2>&1.. worked.