Tomnl / wintee

Automatically exported from code.google.com/p/wintee
0 stars 0 forks source link

stdout to file aswell #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible to get stdout into the output file as well? 

Thanks,

Eelco

Original issue reported on code.google.com by e.de.l...@gmail.com on 8 Apr 2010 at 4:26

GoogleCodeExporter commented 8 years ago
I think the author of the comment meant "stderr" instead of "stdout". The 
failure of wtee to log stderr is a fatal flaw.

Original comment by erik.te...@gmail.com on 11 Jun 2012 at 5:25

GoogleCodeExporter commented 8 years ago
This doesn't work ("echoooo" not found is neither printed on screen, nor in the 
file):

echoooo "blub" 2>&1 | wtee log.txt

This does work:

test.bat:
echoooo "blub"

test.bat 2>&1 | wtee log.txt

Tried it with tee (gnu version / unxutils), mtee, wtee. All had the same 
problem with the first, no problem with the second. To me (as a linux person) 
it looks like it is a windows/cmd problem in general.

Tested on Windows XP SP3 (5.1.2600)

Original comment by goo...@JonnyJD.net on 21 Jul 2012 at 12:34