Date: Thu, 25 Jul 1996 11:01:50 +0300 From: Kai Vorma <vode@snakemail.hut.fi> To: hans@brandinnovators.com (Hans Zuidam) Cc: hackers@freebsd.org Subject: Re: catching /etc/rc output Message-ID: <199607250801.LAA23852@skye.hut.fi>
next in thread | raw e-mail | index | archive | help
Is there a convenient way to direct all output from the /etc/rc scripts to both the console and a file other than rewriting them? Scrollback is not always sufficient especially after lengthy fsck output. I have written a simple program that grabs console output and redirects it both to the console and a file. If the output file is not writable (partition is not yet mounted or read only) it saves console output to a circular buffer until the log file is available. It can also monitor its parent process and exit when the parent dies so it can be started at the head of /etc/rc and it exits automagically when rc is done. The code isn't very clean but I can send it to you if you want it. ..vode
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607250801.LAA23852>