Results 1 to 2 of 2
I am trying to understand how the tee command implemented. I need to use tee command in high speed logging application. where stdout and stderr has to be redirected to ...
- 11-03-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 1
how does tee command implemented?
I am trying to understand how the tee command implemented. I need to use tee command in high speed logging application. where stdout and stderr has to be redirected to a file. here i am concerned about the performance. Is tee redirect the data character by character or by buffer?
or where i can see the source code. I am having red hat linux and Cent OS.
- 11-05-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
It depends upon the source application that is feeding into tee. It can modify the attributes of the output stream to be either buffered (default for stdout) or unbuffered (default for stderr). The source code is available and you can look at it in detail if you wish in order to understand what/how it does what it does.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote