GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Unbuffered pipes
Operating System - Linux
1847734
Members
4430
Online
104013
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 03:03 AM
07-25-2001 03:03 AM
Unbuffered pipes
Hi all,
this is probably an easy one but I didn't figure it out yet: How do I make a pipe unbuffered? I get output normally only after a page (4k) is full or when the pipe is closed. But I need it immediately. My case: starting a ppp connection from script and checking success; or grepping lines from /var/log/messages and sending to different application.
Thx for your help in advance
Thomas
this is probably an easy one but I didn't figure it out yet: How do I make a pipe unbuffered? I get output normally only after a page (4k) is full or when the pipe is closed. But I need it immediately. My case: starting a ppp connection from script and checking success; or grepping lines from /var/log/messages and sending to different application.
Thx for your help in advance
Thomas
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 06:12 PM
07-30-2001 06:12 PM
Re: Unbuffered pipes
I use "tail +0f" to do this. It's line-buffered, which is appropriate for watching a log file or command output live.
For example:
# tail +0f /var/log/messages
You could pipe to it as well:
# my_ppp_command 2>&1 | tail +0f
which would gather both stdout and stderr, and show you a line every time one was printed out.
Give it a try. Good luck!
For example:
# tail +0f /var/log/messages
You could pipe to it as well:
# my_ppp_command 2>&1 | tail +0f
which would gather both stdout and stderr, and show you a line every time one was printed out.
Give it a try. Good luck!
No matter where you go, there you are.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP