From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079040316007.tru64-unix-managers.marc@archive.invalid> From: "Spalding, Stephen" Date: Wed, 28 Apr 1999 19:35:49 +0000 To: tru64-unix-managers Subject: SUMMARY: Capturing bootup output X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079040316007 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