OK, hmm, this is what I want to do. I have MC log the output of the MUD in an .html file and have an http server point at it, so that people can see what i am doing (I call it MudTV :P). I am having 2 problems:
1) MC only updates the logfile in intervals, or when it gets enough data. Is there a way that i can forcefully update the logfile, like calling LogClose and OpenLog whenever a line comes in?
2) I need to limit the buffer, because it can get very large very fast, and if 2-3 people are looking at it (it refreshes, too) my connection is lagged a lot. Is there a way to make it write the last X lines? What i'm thinking is something like a timer that writes the last X lines to a file, possibly omitting built-in logging, but wouldn't that log in plaintext only? How can i do that and log in HTML?
Any help would be appreciated, i don't need the entire script :p
1) MC only updates the logfile in intervals, or when it gets enough data. Is there a way that i can forcefully update the logfile, like calling LogClose and OpenLog whenever a line comes in?
2) I need to limit the buffer, because it can get very large very fast, and if 2-3 people are looking at it (it refreshes, too) my connection is lagged a lot. Is there a way to make it write the last X lines? What i'm thinking is something like a timer that writes the last X lines to a file, possibly omitting built-in logging, but wouldn't that log in plaintext only? How can i do that and log in HTML?
Any help would be appreciated, i don't need the entire script :p