bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does a Bash shell script write prompts followed by reads and do


From: Robert Parker
Subject: Re: Why does a Bash shell script write prompts followed by reads and do it right?
Date: Tue, 1 Sep 2015 14:49:55 +0700



On Tue, Sep 1, 2015 at 12:34 AM, John McKown <john.archie.mckown@gmail.com> wrote:
Not a bug, so likely the wrong forum.

Have you tried doing a fflush() after the fputs()? I.e. something to tell the Kernel to "write this out immediately!". In the case of write(), I think you need to use the O_SYNC flag in the open() call.


Tried sync() and fflush() to no avail. Will try O_SYNC and I will grep for that in the Bash source files. Might just trip over what I need there.

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]