On Thursday 31 October 2002 05:50 pm,Jay Nugent wrote: > Greetings, > > On Thu, 31 Oct 2002, Jerry McBride wrote: > > On Thu, 31 Oct 2002 15:48:47 -0700 Andrew Mathews > > > > <[EMAIL PROTECTED]> wrote: > > > Tony Alfrey wrote: > > > > Hi. > > > > > > > > I want to put little messages in the various boot scripts (like > > > > in /etc/rc.d/rc.modules) so that I can track the boot process. > > > > I would like these messages to appear someplace where I can > > > > review them, such as in dmesg. So far, I have simply put > > > > echo "blah blah" > > > > into scripts and the messages appear on the screen during > > > > boot-up but not in either dmesg (or /var/log/messages) which is > > > > where I would like them. > > > > Does someone know how to do this? I would really appreciate a > > > > hint on this one. > > > > Thanks much in advance! > > > > > > Try: > > > echo "blah blah" >> /var/log/boot.log or > > > echo "blah blah" >> /var/log/messages > > > > You can send it to an unused console via echo "blah" > /dev/tty3 > > To log a message into /var/log/messages you can use 'logger'. > > Like this: > > echo "Resetting time from time.nist.gov..." > /usr/bin/logger -i -t rc.local "Resetting time from time.nist.gov..." > /usr/bin/rdate -s time.nist.gov > > > It uses the syslogd utility, lets you say what the script or > process is that caused the logging, and specify a "text" string to > place in the log. See the manpage for the specifics. > > Enjoy! > --- Jay
Thanks very much Jay, Jerry and Andrew for these tricks!! I'll try them all out! -- Tony Alfrey [EMAIL PROTECTED] "I'd rather be sailing" _______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
