I/O Redirection question

David Smith dwsmith at loki.arc.NASA.GOV
Fri Apr 12 00:48:44 AEST 1991


I have a question regarding I/O redirection.  I have a program in which
writes to stdout and stderr.  I have redirected both of these to a file.

Now comes the problem.  I need to capture stdout in a file along with
stderr, but I also need stdout to go to the terminal for prompting of
input.  Is this possible?  If so, how does one do this?

Answers may be mailed to me directly or you may post responses.  A solution
in for the csh, sh, ksh are all acceptable.

Thank you,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  David W. Smith
  NASA Ames Research Center			All comments are my own and
  (415) 604-6555				do not reflect NASA opinions
  Internet: dwsmith at ames.arc.nasa.gov		or policies.
  USPS: M/S 233-3
  Moffett Field, CA 94035-1000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Comp.unix.shell mailing list