egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stats script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sat Mar 07, 2009 2:43 pm    Post subject: Stats script Reply with quote

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
View user's profile Send private message
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Sat Mar 07, 2009 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sat Mar 07, 2009 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Sat Mar 07, 2009 6:06 pm    Post subject: Reply with quote

Well,try to put mIRC or eggdrop format,and put path to that file in log path..
Back to top
View user's profile Send private message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Sun Mar 08, 2009 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber