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.mod dont write into statsmod.dat

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
Gumble
Voice


Joined: 08 Mar 2005
Posts: 3
Location: Höxter / Germany

PostPosted: Tue Mar 08, 2005 9:15 am    Post subject: Stats.mod dont write into statsmod.dat Reply with quote

Hello,
I´ve got a problem with stats.mod.
The module seems to work fine, it shows the statistics on the channel and so on. But the module don´t write any information to the statsfile, so if I restart the bot, the stats are lost. I´ve chmod the file already to 777/755/700, but with no result.

Any idea how I can fix this problem?
Back to top
View user's profile Send private message Visit poster's website
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Tue Mar 08, 2005 11:36 am    Post subject: Reply with quote

Is the path to the stats file correct in your config?
_________________
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Back to top
View user's profile Send private message Visit poster's website
Gumble
Voice


Joined: 08 Mar 2005
Posts: 3
Location: Höxter / Germany

PostPosted: Tue Mar 08, 2005 3:15 pm    Post subject: Reply with quote

Yes it´s the right path in my config.
After the bot installation all was ok.
The bot writes the stats to the dat file. But after a lot of spamming in the bot channels, we want to clear the stats. So we stop the bot and delete the file. After restarting the bot give an error that no statsmod.dat was there.
Then we stop the bot again and "touch" the file. When the bot now start not error appears, so the path musst be correct, becaus the bot found the file.
But why he doesn´t write the stats in it? Must we put anything like "header indormation" in this dat file?
Back to top
View user's profile Send private message Visit poster's website
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Tue Mar 08, 2005 4:22 pm    Post subject: Reply with quote

I would delete the file create a new empty file and chmod 655 file.dat i know you said you tried chmodding the file but its worth another go. i cant see any reason why this would not work if it worked before.
_________________
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Back to top
View user's profile Send private message Visit poster's website
Gumble
Voice


Joined: 08 Mar 2005
Posts: 3
Location: Höxter / Germany

PostPosted: Wed Mar 09, 2005 4:26 am    Post subject: Reply with quote

Hello,
it´s works now!
But why? Need this file chmod 655?

Thank you ^DooM^ !!!
Back to top
View user's profile Send private message Visit poster's website
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Wed Mar 09, 2005 6:04 am    Post subject: Reply with quote

Your guess is as good as mine. Maybe when you originally deleted the file it could of possibly been in use and for some quirky reason it never managed to 'close' the file as it wasnt there and figured it was still open, locked the file and could write too it. thats a pure guess tho Smile

Glad its working for you now Wink
_________________
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Mar 09, 2005 7:41 pm    Post subject: Reply with quote

^DooM^ wrote:
Your guess is as good as mine. Maybe when you originally deleted the file it could of possibly been in use and for some quirky reason it never managed to 'close' the file as it wasnt there and figured it was still open, locked the file and could write too it. thats a pure guess tho Smile

Glad its working for you now Wink

I had the same thing over a year ago, even rebooting the system didnt help. I dont exactly remeber how I fixed it, but I probably deleted the old file as well Very Happy. the funny thing was, it even read the old stat file propertly on startup succesfully, just never saved it Very Happy.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Thu Mar 10, 2005 5:30 am    Post subject: Reply with quote

We will all lose are marbles if we try and figure out why eggdrop does what it does Laughing
_________________
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming 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