Author: Russell Reagan
Date: 18:25:52 09/25/03
Go up one level in this thread
On September 25, 2003 at 21:05:38, Omid David Tabibi wrote: >On September 25, 2003 at 19:41:08, Russell Reagan wrote: > >>Or you could just get Cygwin and have bash and a whole slew of other useful unix >>tools for use in Windows (including tee). > >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.
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.