Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Redirecting output to file *and* screen (o.t.)

Author: Russell Reagan

Date: 16:39:27 09/25/03

Go up one level in this thread


On September 25, 2003 at 18:32:05, Omid David Tabibi wrote:

>Under UNIX, one can use the command "script" to store the output to a file,
>while displaying it on the screen at the same time.
>
>In Windows, the ">" operator is used to redirect output to file, e.g.:
>
>c:\> epd2wb falcon.exe lct2.epd 600 > output.txt
>
>But when doing so, the output is not displayed on the screen anymore. Is there
>any way to redirect the output to a file and to screen at the same time
>(something like "script" in UNIX)?

I've never heard of 'script', but it sounds like 'tee'. My guess is that you
could write one pretty easy, that reads from standard input, and writes to
standard output AND standard error. Standard error *should* go to the screen,
since '>' *should* only redirect the standard output of the command. Of course,
Microsoft might have thought it would be "clever" or "helpful" to just redirect
everything, so I you'd have to try it.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.