direct console to ok.log, and errors to error.log for example
views:
788answers:
3I tried that, it just writes to file and doesnt show any output
codeninja
2009-10-30 21:44:27
amvx - are you sure you are writing to stdout and stderr, and are you sure that your %CTODAY% is valid? 'cause if I do it with Python, everything works as expected.
dash-tom-bang
2009-10-30 21:50:16
Ah, so you mean show output on "the screen."
Jacob
2009-10-30 21:50:30
+1
A:
The only way that I have found to do this is by using some variant of the UNIX tee
command. You would use it like:
[your command] 2> error.log | tee ok.log
D.Shawley
2009-10-30 21:53:46
+1
A:
OK, if your goal is to split output into both stdout and a file, take a look at this SO question.
Jacob
2009-10-30 21:54:49