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 

Open files

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Shell & Bouncer Help
View previous topic :: View next topic  
Author Message
domp
Voice


Joined: 13 Apr 2005
Posts: 13

PostPosted: Wed Apr 13, 2005 6:48 am    Post subject: Open files Reply with quote

I have a problem with my triviabot. About once an our it locks up with the too many open files error. I contacted my provider about that n they answered I'm limited at 64 what is a standard there.

Now my question, is it normal to set a limit at 64 files? I pay about 15 bucks a month for 3 bg processes and 50 MB data space.

lemme know what You think Wink


Tia Dirk
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Apr 13, 2005 7:16 am    Post subject: Reply with quote

are you talking about 64 opened files at once or 64 files on disc used one by oneother?
I believe a limit of 64 open files is already really a big deal, a 64 files quota for custom files would be ridiculous.
_________________
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
domp
Voice


Joined: 13 Apr 2005
Posts: 13

PostPosted: Wed Apr 13, 2005 7:27 am    Post subject: Reply with quote

64 opened files at once is what I mean. I think it can be solved when the bot restarts every 30 minutes. Is there a .tcl what does that ?
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Apr 13, 2005 7:28 am    Post subject: Reply with quote

domp wrote:
64 opened files at once is what I mean. I think it can be solved when the bot restarts every 30 minutes. Is there a .tcl what does that ?

what about closing the files? I don't know why a bot would require 64 opened files, even if you count open TCP and bash connections as files (as what they are handled in TCL).
_________________
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
domp
Voice


Joined: 13 Apr 2005
Posts: 13

PostPosted: Wed Apr 13, 2005 7:34 am    Post subject: Reply with quote

Closing em by myself is not an option I'm afraid. I don't want to spend that much time online Smile

Does anyome know an tcl that restarts the bot after a certain period of time ? I'm trying to find one but no luck yet
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Apr 13, 2005 7:38 am    Post subject: Reply with quote

the scripts should close them by itself. if they don't you would't run out of file handles sooner or later no matter how high your limit is.

Code:
set fd [open $file r]
#script has 1 open file
   set data [read $fd]
close $fd
#script has 0 open files but still has its content in $data


if you still want to restart your bot periodly, then open TCL-Commands.doc under 'BIND TYPES' -> 'TIME' and 'restart'.
_________________
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
domp
Voice


Joined: 13 Apr 2005
Posts: 13

PostPosted: Wed Apr 13, 2005 7:58 am    Post subject: Reply with quote

sorry for being dumb Wink but do i have to put that in my conf file ?
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Apr 13, 2005 10:02 am    Post subject: Reply with quote

domp wrote:
sorry for being dumb Wink but do i have to put that in my conf file ?

you don't have to, but you can, but however you shouldn't.
scroll your .conf to the bottom you might come up with an idea (if not, you are really dump Razz).
_________________
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
domp
Voice


Joined: 13 Apr 2005
Posts: 13

PostPosted: Tue May 31, 2005 11:59 am    Post subject: Reply with quote

De Kus wrote:
the scripts should close them by itself. if they don't you would't run out of file handles sooner or later no matter how high your limit is.

Code:
set fd [open $file r]
#script has 1 open file
   set data [read $fd]
close $fd
#script has 0 open files but still has its content in $data


if you still want to restart your bot periodly, then open TCL-Commands.doc under 'BIND TYPES' -> 'TIME' and 'restart'.



I still have the same problem Neutral Since nerbendr seems to be vanished I give it another try here.

When i use the above script in a tcl nothing happens... anyone who could help me?
Another solution might be a script where the bot die's after 30 minutes and restarts after that.

All of your help is very much appreciated by this NON-tcl'er Wink

Tia

Dirk
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue May 31, 2005 7:24 pm    Post subject: Reply with quote

nerbendr strikes again! Look, personally I'd get rid of that trivia script permanently and go for one that works and is FREE! MoxQuizz 0.8.1 is an excellent multi language trivia script and doesn't open multiple files all over the place and the author fully supports his product for free! Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
domp
Voice


Joined: 13 Apr 2005
Posts: 13

PostPosted: Tue May 31, 2005 7:32 pm    Post subject: Reply with quote

I gave Oxquizz a try before I bought nerfbenders script. The problem with moxquizz is the fact not all text is displayed in java. Most people use the java chat applet there Rolling Eyes

Besides that I have over 600,000 questions in the format for Nerf's bot now..

Any idea for an solution with killing and restarting the bot ?
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue May 31, 2005 8:19 pm    Post subject: Reply with quote

Try the Search function; I am sure this problem has already been covered elsewhere. Wink
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
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 -> Shell & Bouncer 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