Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 999863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:25:09+00:00 2026-05-16T07:25:09+00:00

I asked the other day if data integrity (of flushed data) is kept even

  • 0

I asked the other day if data integrity (of flushed data) is kept
even when there are more than one PIPEs streaming into
localhost’s STDIN. The answer is NO if the data flushed is large.
Data integrity question when collecting STDOUTs from multiple remote hosts over SSH

But I would like to guarantee every line flushed on each end is
passed to the single STDIN in full and won’t be mixed up with
data from other pipes. Is there any way to do so? How can that be done?

(Note that it can be done if I create multiple STDINs locally.
But it is more convenient if I can process line streams through a
single STDIN. So my question focuses on the case when there is
only one STDIN at localhost with multiple (STDOUT) PIPEs into it.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:25:10+00:00Added an answer on May 16, 2026 at 7:25 am

    This can be done via a congestion-backoff system like that used in Ethernet.

    First, assign each pipe a unique delimiter. This delimiter cannot appear unescaped in the contents of any pipe. Now, use the following pseudocode:

    • Check for other process’ delimiter; while an odd number of a single other process’ delimiters is present, wait.
    • Write delimiter character.
    • Check if another process has also written an unmatched delimiter. If so, back off a random (increasing) amount and return to first step.
    • Write data.
    • Write delimiter character.

    This will ensure that, although you will have some junk, every whole message will eventually get through.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is related to one I asked the other day which I got
I asked a similar question the other day but it seems no one was
It's a tricky question I was asked the other day... We're working on a
This is related to a question I asked the other day on how to
Someone asked me a question via e-mail about integer partitions the other day (as
I asked about Choosing a method to store user profiles the other day and
The other day, I asked how to create a message box in your class
This is very similar to a question I asked the other day but my
I asked a question the other day about how rows are added to a
A friend of mine asked me the other day if I'm just looking at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.