Skip to main content

Questions tagged [flush]

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

1 vote
1 answer
65 views

Why does printf flush or not flush depending on where the line is in a loop?

Why, in this program, does the printf function print or not print depending on where it is inside the loop? #include <stdio.h> #include <time.h> int main() { char frames[] = {'-',...
user13456653's user avatar
0 votes
0 answers
24 views

Python log both ("tee") to terminal and file, and real-time flushing with PyQt5? [duplicate]

First of all, my platform: $ for ix in "uname -s" "python3 --version"; do echo "$ix: " $($ix); done uname -s: MINGW64_NT-10.0-19045 python3 --version: Python 3.11.9 I ...
sdbbs's user avatar
  • 5,131
1 vote
2 answers
140 views

How do loggers flush without adding an end of line to the log messages?

I have seen many loggers using operator<< to read log messages and write them on file: template<typename T> Logger& Logger::operator<<(Logger& l, const T& s) { l....
Pietro's user avatar
  • 12.7k
0 votes
0 answers
28 views

fread / ob_flush / flush failing on only one file [duplicate]

I have a PHP application running on the web that manually downloads large binary files that are not located in the web space filesystem. while(!feof($l_file_handle)) { print(fread($...
glenn-at-nasa's user avatar
1 vote
0 answers
29 views

How can I flush the total Page object which represents a HTML page in ASP .net

I am working on a prebuilt API in a .net server. So there I saw we use Page class and append some js external links as <link> tag and I want to flush them early so that the client can download ...
Sushanta Saren Abhi's user avatar
0 votes
0 answers
19 views

Hibernate: NamedQuery is not finding previously created entities

I am working with Java 1.8, Hibernate 5.6.15.Final, Spring 5.3.27 and Spring.data Neumann-SR9 I have created several entities using Hibernate/JPA using getEntityManager().persist(entity), these ...
Edmund's user avatar
  • 71
0 votes
1 answer
60 views

C Program Pauses After Reading First Input

I'm working on a C program intended to remove blank lines between text from a .txt file. The program asks the user for the names of the source and destination files. However, I'm encountering an issue ...
Luke Auslender's user avatar
0 votes
1 answer
79 views

Force flush Python-part of Bash-script?

I have a simple Bash-script that spend more than 99 % of its time on executing a Python application (the script is just a wrapper that feeds this Python script files in a for-loop and renames the ...
d-b's user avatar
  • 921
0 votes
0 answers
16 views

Popen redirected to file, but file not created soonenough [duplicate]

I run an external exe from python3 that redirects to file import subprocess subprocess.Popen('app.exe > out.txt', shell=True, stdout=sub.PIPE) but after, when I check if it's created sometimes it ...
Eva4684's user avatar
  • 47
0 votes
1 answer
63 views

python how to clear every old print output and replace new content (multiple lines)

Normally if the content can be print only in one line in terminal, flush=True can do it perfectly, but if the length is too long that it takes maybe 2 lines, flush can not clear the first line but the ...
ogios's user avatar
  • 45
0 votes
0 answers
29 views

Output buffer for terminal is getting flushed in case of both new line and endl. Why? [duplicate]

I know that new line character does not flush the output but endl does. Flushing the buffer means that everything stored in the buffer will be sent to the file which in this case is terminal. "it ...
Himanshu Poddar's user avatar
1 vote
2 answers
297 views

How is restic outputting data to the screen but not to stdout or stderr?

Updating line I have a question about where the output of a certain command is going. I'm using restic as an example of a command that behaves this way. It's the last line of the command that's of ...
Matt's user avatar
  • 9,345
0 votes
1 answer
37 views

How to restore the files in wal and execute flush when restarting fails in Apache IoTDB Version 0.13.0?

What should I do if the flush command fails to persist the files in wal, resulting in the failure to restart Apache IoTDB? I use Version 0.13.0 of IoTDB, and the error message is: 231 - WAL detected, ...
Monster Zhang's user avatar
0 votes
0 answers
28 views

The difference between dcbf and dccivac arm instructions

Context: I currently want to flush my descriptor to read the proper status bits. Can someone explain to me if I should be using dcbf or dccivac instruction? I fail to understand the right difference ...
Vanshika's user avatar
2 votes
2 answers
121 views

Do `fseek`, `fsetpos`, and `rewind` flush the buffer in C?

The C reference states that a FILE* opened in update mode ('+') needs to take the following two precautions: Output cannot be followed by input without a call to one of fflush, fseek, fsetpos, or ...
Christopher Miller's user avatar

15 30 50 per page
1
2 3 4 5
76