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.

logfile only being written to every 5 minutes

Old posts that have not been replied to for several years.
Locked
G
Gabe

logfile only being written to every 5 minutes

Post by Gabe »

I'm running my eggdrop bot on a Redhat machine, and the logs/eggdrop.log is only being written to every 5 minutes, making it rather annoying to debug new functions as I am writing them. Is there a way I can change this in the eggdrop bot or is it a redhat thing and it normally writes to the logfile instantly on other distros?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

No it's actually normal on most operating systems that when you write data to a file, the data isn't really written until you flush it or close the file, unless the disk bufer fills up, then it's flushed automatically. You can use the quick-logs setting to have it flush the logs every minute instead of every 5 minutes. A better idea is to be on the partyline, because then you see putlogs instantly.
G
Gabe

Post by Gabe »

Yeah, I'm working on the partyline thing. We moved the bot to a new server and are having some firewall issues, so I can't DCC Chat with the bot right now. *sighs* And thank you for the tidbit to make it go once a minute instead of every 5.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Try telnet, or /ctcp bot chat if you're having firewall problems. Can't you at least ssh/telnet to the bot's computer and do telnet localhost yourport?
G
Gabe

Post by Gabe »

yeah, that's what I ended up doing for the time being until we can get the /ctcp chat stuff to work properly.
Locked