/var/log/messages question
Peter Gordon
peter at thecodergeek.com
Mon May 30 23:05:07 UTC 2011
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 at thecodergeek.com>
Who am I? :: http://thecodergeek.com/about-me
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110530/995f4721/attachment.bin
More information about the users
mailing list