Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    1

    Question 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.

  2. #2
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...