Timeline for Redirect stdout and stderr, with timestamps on stderr only
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 21, 2012 at 21:44 | vote | accept | twblamer | ||
| Aug 20, 2012 at 22:48 | comment | added | Gilles 'SO- stop being evil' | @donothingsuccessfully, lk- This question asked how to get the output in order reliably, and no one had a solution. | |
| Aug 20, 2012 at 18:24 | comment | added | donothingsuccessfully | Right you are. A the possibility of a race condition seems unavoidable what ever the solution. | |
| Aug 20, 2012 at 18:17 | comment | added | lk- | Right, but since they are separate streams I'm not sure if there is any way to prevent that | |
| Aug 20, 2012 at 18:13 | comment | added | donothingsuccessfully |
I think there's a possibility of a race-condition here. Both tee and stdout of test.pl are writing to all.txt. There's no guarantee that the lines will be in the same order that would be seen when running it in a terminal.
|
|
| Aug 20, 2012 at 17:59 | review | Low quality posts | |||
| Aug 20, 2012 at 18:04 | |||||
| Aug 20, 2012 at 17:57 | history | answered | lk- | CC BY-SA 3.0 |