DOS Line Ends On /var/log/boot.log On CentOS 6.7 ?
Hello all —
Recently, I’m seeing DOS line ends, ^M, on my /var/log/boot.log file. Honestly, I don’t check this very often so I can’t say exactly when this occurred. Is this just MY experience or are others seeing this also.
Additionally, boot/log seems very sparse. Is an old issue still in force on this?
https://www.CentOS.org/forums/viewtopic.php?t=17313
Should I get the updated script from CentOS Plus?
Thanks for any help.
—
———————————————————————-
MzK
“Time spent with cats is never wasted.”
— Sigmund Freud
3 thoughts on - DOS Line Ends On /var/log/boot.log On CentOS 6.7 ?
this file shows ident content, as you see during boot, when you start without ‘quiet’
and there are green or red colors, and these are also stored – somewhat ANSI escape sequences;
when you do this:
cat /var/log/boot.log
you will see the AHA ;-)
Hello again, list.
Please disregard this for the time being. I got a personal response that pointed out the doing a cat on boot.log produced a specific correct format whereis I was used to using my gui editor to display log files. Using the “log viewer” utility also shows these non-unix line ending which I found annoying.
For those who are interested in additional boot.log settings, I found this page:
https://www.CentOS.org/docs/5/html/5.2/Deployment_Guide/s2-sysconfig-init.html
from the old deployment guide but I’m sure these en variables are the same now — well at least in the 6.x series.
—
——————————————–
MzK
“Time spent with cats is never wasted.”
— Sigmund Freud
I checked a C6 /var/log/boot.log from 5 years ago and ^M chars are there all right. You can easily spot them with less -R /var/log/boot.log. This is a surprise indeed and it’s not configurable. Try to comment out echo
-ne “\r” lines in /etc/rc.d/init.d/functions if you hate the output so much.