Re: way to "duplicate" console contents to a file?
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On 3/6/07, Linda Walsh <lkml@xxxxxxxxx> wrote:
Eric Bambach wrote: > On Sunday 04 March 2007 18:02, Linda Walsh wrote: > >> Is there a way to have my console messages duplicated and saved in a file? >> > Have you looked into using the serial console and some sort of secondary > server to capture its output? It could be easily logged and stored. Serial > consoles are started very early in the boot process so you would get almost > all kernel message just after the kernel is invoked. Its a popular kernel > hacker debugging method. > ---- May end up using that method -- it's not idea though because it's an "either/or" solution vs. a "co-solution". Don't need the input redirected, so much as just a log of output.
I think it is possible to specify multiple console= command line arguments and the console output will be available on all. Somebody please CMIIW. Thanks, Rajat
I wonder if something like klogd would be practical. Something that stays active and sweeps the display buffer of the console periodically and dumps contents to file -- something like an "auditd" for the console (in the respect that auditd takes messages from kernel and dumps to file). Maybe would work best if console buff was kept in memory (kernel option to use memory to allow as scroll-back). Even so, I suppose it should be possible to read out of video memory as well as writing into it (?)... - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs