/var/log/messages question
On 05/30/2011 03:36 PM, Tom Horsley wrote:
> If would be real convenient to have a known string to
> search for that always precedes the rest of the messages
> in a new boot.
You could try grep'ing for the Linux version string, always one of the
first several lines printed during kernel startup. Try searching for
something such as "[ 0.000000] Linux version".
Alternatively, you could search for your logger's "start" message. On my
Fedora 15 install, the first messages on each boot are:
imklog 5.7.9, log source = /proc/kmsg started.
rsyslogd: [origin software="rsyslogd" swVersion="5.7.9" x-pid="872"
x-info="http://www.rsyslog.com"] start
Hope that helps.
--
Peter Gordon (codergeek42) <peter@thecodergeek.com>
Who am I? :: http://thecodergeek.com/about-me
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
|