This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Stats script

Help for those learning Tcl or writing their own scripts.
Post Reply
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Stats script

Post by Fill »

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
D
DaRkOoO
Halfop
Posts: 67
Joined: Sat Sep 27, 2008 7:27 am

Post by DaRkOoO »

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
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Post by Fill »

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:
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
D
DaRkOoO
Halfop
Posts: 67
Joined: Sat Sep 27, 2008 7:27 am

Post by DaRkOoO »

Well,try to put mIRC or eggdrop format,and put path to that file in log path..
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Post by Fill »

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
Post Reply