- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Unbuffered pipes
Operating System - Linux
1753278
Members
5323
Online
108792
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
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP