Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!purdue!news.cs.indiana.edu!rutgers!usc!sdd.hp.com!spool.mu.edu!uunet!bria!mike From: mike@bria.UUCP (Michael Stefanik) Newsgroups: comp.unix.shell Subject: Re: I/O Redirection question Message-ID: <193@bria.UUCP> Date: 14 Apr 91 21:23:28 GMT References: <1991Apr11.144844.28800@riacs.edu> Reply-To: uunet!bria!mike Organization: MGI Group International, Los Angeles, CA Lines: 17 In an article, dwsmith@loki.arc.NASA.GOV (David Smith) writes: |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? Try: $ [someprogram] 2>>somefile | tee /dev/tty >>somefile -- Michael Stefanik, MGI Inc, Los Angeles | Opinions stated are never realistic Title of the week: Systems Engineer | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- If MS-DOS didn't exist, who would UNIX programmers have to make fun of?