My original message was:
"I want to capture the output of my /sbin/rc0, rc2, and rc3 startup scripts
> and put it to file, but I also want to see the output come to the screen
> at
> boot time. I was considering putting the following line at the top of each
> of the files:
>
> exec >> boot_output.log 2>&1
>
> Is this the way that everyone else does it?"
>
>
What I have ended up doing is modifying a couple of lines in each of the rc
files. Here are the lines that I changed:
$f stop | tee -a $LOG_FILE
$f start | tee -a $LOG_FILE
where $LOG_FILE is set with a unique number earlier in the script.
The problem with the line that I had originally said that I wanted to use
was that it would capture the output and not display it to the screen also.
The tee command is designed for just that, so it will server me best in this
case.
Regards,
-Stephen Spalding
Received on Wed Apr 28 1999 - 19:40:45 NZST