Timeline for Show only stderr on screen but write both stdout and stderr to file
Current License: CC BY-SA 2.5
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 19, 2011 at 21:28 | comment | added | Gilles 'SO- stop being evil' |
@Andreas: Oh, duh, tee introduces a delay here too. I don't think there is a pure shell solution. In fact I wonder whether there is a solution without modifying the application in some way.
|
|
| Mar 19, 2011 at 20:56 | comment | added | Andreas | This also, does not quite work for me, I get stdout lines first, and then all stderr lines in 'log' file. example: { { echo out; echo err 1>&2;echo out2;echo err2 1>&2; } 2>&1 >&3 | tee /dev/tty; } >log 3>&1 | |
| Mar 19, 2011 at 20:30 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 2.5 |