tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Spalding, Stephen" <SSpaldin () mem-ins ! com>
To: tru64-unix-managers
Subject: SUMMARY: Capturing bootup output
Date: Wed, 28 Apr 1999 19:35:49 +0000	[thread overview]
Message-ID: <96079040316007.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1999-04-28 19:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox