help triviabot

Old posts that have not been replied to for several years.
Locked
o
ottozuts
Voice
Posts: 16
Joined: Mon Dec 20, 2004 8:23 am

help triviabot

Post by ottozuts »

maybe its because i have the demo version of nerfbendrs triviabot
but my bot always stop

tcl error cant read or open triviabot_total.txt too many files open
i know u guys are bz but i love dis bot n i want it to work
ive been trying to email nerf but no reply
i want to get the full version if it will solve my problems
if u guys who use the triviabot can help :)
thank you
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

use close file maybe not sur if the code keeps opening the file but consider to use close after opening a file when not needing it anymore don't read and open it over and over that will give you this problem

or the fdlimit is way to low .. which i doubt but its also a possibility

check it ulimit -n it will probably be a value from 256 (could be less as long its not 1 or 2 :p) to 1024 or more probably 1024 ..
XplaiN but think of me as stupid
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

`ulimit' works in bash only; in csh/tcsh you need `limits'

besides, if you're not root, you might not be allowed to raise open files limit
Locked