| View previous topic :: View next topic |
| Author |
Message |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sat Mar 07, 2009 2:43 pm Post subject: Stats script |
|
|
Hi, I used search but didn't find anything... so here I am.
Here's the question:
I have a TCL script that logs certain events into a file (*.txt). How could I make kind of a "stats" webpage that showed the content of that file, uploading eg. every 5 minutes??
I know this is possible, 'cause I often see websites showing IRC estatistics and channel logs from the last 2 mins. how do they do it?
Thanks in advance,
Fill |
|
| Back to top |
|
 |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Sat Mar 07, 2009 3:05 pm Post subject: |
|
|
| I think you can find smth like that in tcl archive..Otherwise,you can use pisg,that is perl script which make good webpage stats..Something like this(this is mine stats,you can do much more with this script,it has lot of options) Click |
|
| Back to top |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sat Mar 07, 2009 4:15 pm Post subject: |
|
|
Yeah I've been searching on the internet in the last hours and found this Pisg thing... but I guess it only works with certain system logs, as you can see in their website:
| Quote: |
Supported logfile formats:
* X-Chat
* mIRC
* mIRC6
* Eggdrops
* bxlog for BitchX
* irssi
* virc98
* dancer
* Trillian
* Grufti
* mbot
* winbot
* zcbot
* muh
* energymech
* ircII
* psybnc
* ircle
* infobot
* axur
* bobot++
* oer
* perlbot
* Vision
* pircbot
* KVIrc
* HydraIRC
* sirc
* moobot
* supybot
* blootbot
* dircproxy
|
So it'll mess up with a file that isn't a proper log, because the file I want to show is not a log from a channel, it's something that the bot writes to a file when someone triggers a command :S |
|
| Back to top |
|
 |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Sat Mar 07, 2009 6:06 pm Post subject: |
|
|
| Well,try to put mIRC or eggdrop format,and put path to that file in log path.. |
|
| Back to top |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Sun Mar 08, 2009 5:37 am Post subject: |
|
|
Hey,
I figured out that what I really wanted is to read the content of a certain *.txt file that the bot writes to into a common hmtl webpage, and that is not related to TCL or eggdrop, so sorry for the offtopic.
I found this page, which seems to be very useful:
http://www.daniweb.com/forums/thread162966.html
I'm going to try to do that, it seems like I have to set a special configuration on my Apache Server and make the html page.
Thanks for the help anyway,
See ya |
|
| Back to top |
|
 |
|