aMule Forum
English => aMule Help => Topic started 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:
-
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) :
# 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++
-
: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:
...; /usr/local/bin/aStats --web ; /usr/bin/lftp ....
just cut >/dev/null 2>&1.. worked.