All Questions
Tagged with named-pipes python
106
questions
0
votes
0
answers
42
views
Is it correct to use attributes in pipe methods?
In the following code section we have a source process that transmits information by reading elements from a tuple and writing the corresponding elements one by one on an anonynous pipe.
A second ...
0
votes
0
answers
80
views
detecting named pipe reader disconnect using select.poll fails on macOS, works on Linux
I want to detect on the writer (producer) end of a named pipe, when the reader (consumer) disconnects. In particular, this should work on Linux and macOS (Windows is already requires a separate method ...
1
vote
0
answers
47
views
Named Pipes in Linux with Python read/write miss some lines of text
I am learning how to use named pipes to pass data between processes. To test it out, I wrote two Python scripts, which I called pipewriter.py and pipereader.py, and a named pipe called my_pipe (using ...
0
votes
0
answers
78
views
"The request is not supported" error (50) when using PeekNamedPipe from within a windows docker container
When creating a windows named pipe from a service running on a host windows machine and communicating with it from client application running within a windows docker container, The following error ...
0
votes
1
answer
432
views
Named Pipe (Buffer?) or Shared Memory Files in Python
I have a question regarding named pipes or something similar in python and wether they can be made to work for my use case. I have something like the following code.
fn = path/to/my/file.ext
os.mkfifo(...
0
votes
1
answer
1k
views
Why is reading a file asynchronously (with aiofile) so much (15x) slower than its synchronous equivalent?
I'm experimenting mit named pipes and async approaches and was a bit surprised, how slow reading the file I've created seems to be.
And as this question suggests, this effect is not limited to named ...
0
votes
1
answer
298
views
CPU usage/ speed tradeoff when reading from a named pipe in python
I want to read from a pipe asynchronously in python. The pipe is fed continuously from another process (a javascript process). I am using pipes for a matter of speed.
I don't want to loop and see if ...
0
votes
0
answers
509
views
Is there a way to write an image to a named pipe in Python, and then read it?
import os
path = "hello.jpg"
mode = 0o600
import cv2
os.mkfifo(path, mode)
image = cv2.imread("df.jpg")
print(image)
cv2.imwrite(path, image)
cv2.imshow("image", image)
...
0
votes
0
answers
238
views
Python named pipes - running 2 apps through each other
Very new to python and named pipes!
I am trying to run an GUI and a motion tracking application at the same time - and send the motion tracking application output (CSV) to the GUI script to ...
1
vote
1
answer
910
views
Named Pipe C# Server + Python Client
I'm trying to create a C# Named Pipe server with a Python client. The Python client is supposed to send an instruction to the C# server, and the server return some data based on the instruction. The ...
1
vote
0
answers
329
views
Communication through named pipe works with file descriptors but not with unbuffered operation to FILE*
I have two programs that need to communicate with each other. I choose named pipe as IPC mechanism. One program is in C++ and the other one is a python script but for testing purposes, I will show the ...
0
votes
2
answers
507
views
Is SIGPIPE signal received when reader is killed forcefully(kill -9)?
I have created a fifo using C and python programs. The fifo is created in the C program, which does the reading Operation and the writing is done in Python. My question is as follows:
If my reader(C ...
0
votes
1
answer
381
views
Why does reading continue in a FIFO after the writing end is closed? [duplicate]
I have 2 python programs. One is the reader
fifo_read=open('buffer','r')
while True:
data=fifo_read.read(1)
print('"',data,'"read from buffer')
and the other is the writer
import ...
0
votes
0
answers
710
views
Bidirectional Communication between Python and C#
I'm working on a project, where I have to connect Python and C# in a rather flexible way, with information being send from one to the other frequently. Most of the time, the data goes back and forth (...
1
vote
1
answer
177
views
C to Python piping - How to detect reader access
I am writing to a named pipe with a C program and reading it with a Python one.
If I stop the Python program (reader) then the writer just stops on its own although this is in a while(1) loop. Why ...