Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tee

Author: Randall Shane

Date: 21:22:44 09/25/03

Go up one level in this thread


On September 25, 2003 at 21:25:52, Russell Reagan wrote:

>On September 25, 2003 at 21:05:38, Omid David Tabibi wrote:
>

>>I have Cygwin installed on my computer, but the command "script" is not
>>available there. I tried Tee, it works fine with simple commands like:
>>
>>dir | tee output.txt
>>
>>but when using it together with the following:
>>
>>epd2wb falcon.exe lct2.epd 600 | tee output.txt
>>
>>for some reason no output is sent to screen nor to file...
>
>Just curious, but are you calling it from bash or from the MS-DOS prompt? I
>noticed you did 'dir' instead of 'ls', so I was wondering. I'd try it from bash,
>if you didn't already. I don't know exactly how the MS-DOS piping stuff works. I
>would assume it'd be basically the same, but you never know.
>
>You might also try (from bash) something like: "epd2wb falcon.exe lct2.epd 600
>2>&1 | tee output.txt". That little addition (2>&1) will send everything from
>file descriptor 2 (standard error) to file descriptor 1 (standard output), so
>both standard error and standard output will be redirected. I don't think this
>is what's wrong though, because tee only reads standard input, and AFAIK, the
>pipe | only pipes standard output to standard input. If epd2wb was dumping stuff
>to standard error, it should show up on the screen.

I use the Cygwin tools in Windows -- they, including tee, work fine from a
MS-DOS prompt.  Must be something else, I think.

To test, try the command :

    type filename | tee filename.out
where filename is any text file.





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.