Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!ncis.tis.llnl.gov!dog.ee.lbl.gov!ucbvax!agate!riacs!loki!dwsmith From: dwsmith@loki.arc.NASA.GOV (David Smith) Newsgroups: comp.unix.shell Subject: I/O Redirection question Keywords: redirection, stdout, stderr Message-ID: <1991Apr11.144844.28800@riacs.edu> Date: 11 Apr 91 14:48:44 GMT Sender: news@riacs.edu Reply-To: dwsmith@loki.arc.NASA.GOV (David Smith) Organization: NASA Ames Research Center Lines: 22 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@ames.arc.nasa.gov or policies. USPS: M/S 233-3 Moffett Field, CA 94035-1000 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~