tee command hangs when receiving many outputs.
Issue
-
When standard output of telnet command is sent to tee command via pipe and many output occurs, tee command hangs with the message 'tee: standard output: Resource temporarily unavailable' outputted. This issue occurred at our customer's site.
-
How reproducible: It always occurs if many messages are outputted.
-
Steps to Reproduce:
-
Run the following command and login.
# telnet localhost | tee /tmp/tee.log -
Output a very large file with cat command.
# cat /var/log/messages
-
- Actual results: tee command hangs after 'tee: standard output: Resource temporarily unavailable' is outputted.
-
Expected results: It works without errors.
-
Additional information:
- If ssh instead of telnet is specified then it does not occur.
- It occurred in RHEL6, too.
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- coreutils
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
