This tag indicates data that is not in full temporarily stored in memory, but processed directly after reception. It is used with processing program input character by character as against line by line or in chunks of a certain buffer size, as well as with fetching results of a database query one by one as against the whole result set at once (e. g. MySQL/PHP use vs. store result).
Questions tagged [unbuffered]
49 questions
0
votes
1 answer
How can I create an unbuffered I/O multiplexer in Python?
I want a console python script that will receive input on stdin and immediately write it out to stdout and stderr simultaneously. This should be unbuffered both on input and output.
How would I do this? I assume it's pretty basic, once you know the…

Chris R
- 17,546
- 23
- 105
- 172
0
votes
1 answer
Getting the output unbuffered from subprocess is not working Python
I have an exectuable that if i run it with flags it starts a tool that generate messages all the time.
When i try to run it with subprocess i get the output to the cmd and that is fine.
The thing is that i want to take this messages and do something…

KaramJaber
- 851
- 5
- 13
- 24
0
votes
1 answer
How to pipe two seperate outputs into a single program's input without a buffer
I have an executable python script, process-data.py that reads live input through stdin and processes it in real time. I want to feed it two types of data: images, and raw text. both are generated from other python scripts.
processing text works…

bjubes
- 195
- 1
- 15
0
votes
0 answers
C# Call external command and read Stdout unbuffered
Is there a way to call an external command line program and read Stdout un-buffered?
Have read several topics and examples but all propose the use of Process.BeginOutputReadLine() with all it's preconditions. (MSDN Process.BeginOutputReadLine)
My…

Daniel Vikström
- 339
- 1
- 3
- 6
0
votes
3 answers
change output from character array
Once again i find myself relatively lost and seeking knowledge from my peers.
What I am needing to do is to write a program that takes in an encoded language that adds the leters 'u' 't' after ever consonant and output into english. So the input…

scubasteve7
- 57
- 2
- 2
- 5
0
votes
4 answers
C - does read() add a '\0'?
Does it have to? I've always been fuzzy on this sort of stuff, but if I have something like:
char buf[256];
read(fd, buf, 256);
write(fd2, buf, 256);
Is there potential for error here, other than the cases where those functions return -1?
If it…

user3475234
- 1,503
- 3
- 22
- 40
0
votes
0 answers
PHP/MySQL: Lock data while query in progress
I have a database in which some tables are updated every 2 minutes (using UPDATE, old rows are kept). I also have a page to show the latest data from these tables.
To the problem: Sometimes the page shows only a part of the current rows since they…

Henry
- 15
- 1
- 8
0
votes
1 answer
HY000 - 2014 - Cannot execute queries while other unbuffered queries are active
Statement could not be executed (HY000 - 2014 - Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query…

Rajeesh
- 1
- 3
0
votes
1 answer
ifstream, unbuffered read, and no read ahead caching?
I'm trying to accurately determine some of the interactions between a userland program using the C/C++ library and the OS (and its components like the filesystem's Page Cache or Disk Cache). I have two questions.
First, is "unbuffered" in C/C++…

jww
- 97,681
- 90
- 411
- 885
0
votes
3 answers
Go Channels behaviour appears inconsistent
I am seeing an inconsistency in the way unbuffered channels appear to work - this is either an inconsistency in Go, or in my understanding of Go...
Here is a simple example with output. The 'inconsistency' is with the 'make channel' lines.
package…

AndyS
- 725
- 7
- 17
0
votes
1 answer
Type of Linux/Unix I/O
i have to make a presentation about Linux/Unix I/O: File I/O,Standard I/O, buffered/unbuffered I/O and formatted/unformatted I/O.
i'm not sure how to order these kinds of I/O to make sense.
here is my try:
file I/O
unbuffered I/O
buffered…

Christian Götz
- 818
- 1
- 8
- 11
0
votes
2 answers
ZF2 PDO unbuffered queries
I have a install method for my cms witch reads sql files and executes them . so far so good ..
But i also need to do some initialization on db ( inserting some dynamic values )
$q = "INSERT INTO `tbl_users_roles` (`userId`, `roleId`) VALUES
…

Exlord
- 5,009
- 4
- 31
- 51
0
votes
0 answers
How to set stdout unbuffered on a per-machine basis?
I ran into a case in which my machine buffered stdout, but a coworker's machine did NOT buffer stdout for the exact same code. We're running nearly identical environments (we're both using the same virtual machine image in VMware Player, but he on a…

Matt
- 775
- 7
- 24
0
votes
2 answers
Linux unbuffered reads from STDIO
I'm trying to rewrite a duplicate of wc -l that displays partial results, as it receives input (for example,
My current version is a simple
while(!feof(in) &&
//(readc=fread(buf, 1,BUFSIZE,in))) {
(readc=read(0,buf,…

zebediah49
- 7,467
- 1
- 33
- 50
0
votes
0 answers
Unbuffered communication between C++ and Python
I want to pass data from C++ to Python in Linux and I do this through a pipe.
My C++ program looks like this:
#include
#include
#include
#include
int main() {
FILE *cmd;
std::ostringstream ss;
double…

Jon Helt-Hansen
- 383
- 1
- 5
- 19