tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Capturing bootup output
@ 1999-04-28 19:35 Spalding, Stephen
  0 siblings, 0 replies; only message in thread
From: Spalding, Stephen @ 1999-04-28 19:35 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-04-28 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-28 19:35 SUMMARY: Capturing bootup output Spalding, Stephen

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