[comp.unix.shell] csh redirection

como@max.bnl.gov (Andrew T. Como) (01/29/91)

csh question:

I am attempting to help out the operators in using the dump command.

What I am trying to do is
1. allow the operators to see the dump run on their terminal and
2. capture the dump output into a file for logging purposes.

Unfortunately, I am not well versed in "csh" and can use some help
in trying to accomplish this task.  I have tried a number of combinations
of redirecting stderr from the csh manual BUT cannot get it to do both.

I  also believe the output from dump goes in stderr.

Can anyone help?
		Andrew Como  INTERNET: como@bnl.gov
			     BITNET:   como@bnlux0.BITNET
			     UUCP:     ...philabs!sbcs!bnl!como
				   or  bnlux0!como@uunet.uu.net

jik@athena.mit.edu (Jonathan I. Kamens) (01/29/91)

In article <2446@bnlux0.bnl.gov>, como@max.bnl.gov (Andrew T. Como) writes:
|> What I am trying to do is
|> 1. allow the operators to see the dump run on their terminal and
|> 2. capture the dump output into a file for logging purposes.

Easy way: Run "script" before starting the dump to save the entire session in
a typescript.

Slightly harder way: Run "dump <dump arguments> |& tee filename" to tee the
output of dump to a file.

Your choice.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710