(Obvious?) Linux Question.
Feb. 10th, 2009 02:25 amI've got a process that I'd like to monitor that, in debug mode, will issue a semi-infinite list of debug messages to stout. What I would like to do is have it run in the background and output to some sort of ring-buffer file that only keeps the last 100K or so of output. That way I can occasionally check in on it with a tail -f command without worrying about my hard drive filling with a single huge file.
So, is there such a ring-buffer utility in Linux. I simply assumed that such a thing would exist (after all, dmesg is a ring buffer), but I've not had any luck looking for it. So, does such a file utility exist, or not?
So, is there such a ring-buffer utility in Linux. I simply assumed that such a thing would exist (after all, dmesg is a ring buffer), but I've not had any luck looking for it. So, does such a file utility exist, or not?