I need to write a command line too开发者_如何学运维l that records the boot process information in Linux, and then renders it in a chart format (a textual chart would do). How do I programmatically obtain the this boot process information? Languages that I am allowed to use are C and C++.
Thanks in advance. :-)
Doesn't [link text][1] pretty much already do this? Or do you need to write an initlog replacement?
I don't know what kind of "chart" you would make from such data, but have a look at gnuplot to help you with that part.
edit: I had the wrong tool mentioned originally.
[1]: http://linux.about.com/library/cmd/blcmdl1_initlog.htm initlog
You could look at bootchart http://www.bootchart.org/ that seems to be something that already does exactly what you want.
精彩评论