aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: how to set stats signature  (Read 3296 times)

powtrix

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 21
how to set stats signature
« 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:
Logged
p2p - the future is here

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Try to use crontab ...
« Reply #1 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++
Logged
Creator of aMule & aStats projects

powtrix

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 21
Re: how to set stats signature
« Reply #2 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.
« Last Edit: January 21, 2004, 06:41:06 AM by willy »
Logged
p2p - the future is here