Skip to main content

All Questions

Tagged with
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 ...
athant4's user avatar
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 ...
TheDiveO's user avatar
  • 2,491
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 ...
Paul Wintz's user avatar
  • 2,708
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 ...
Sagiv Avraham's user avatar
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(...
N1l5's user avatar
  • 25
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 ...
frans's user avatar
  • 9,584
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 ...
mehh's user avatar
  • 59
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) ...
BrimBramBrum's user avatar
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 ...
AMeng's user avatar
  • 35
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 ...
ceds's user avatar
  • 2,165
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 ...
Adrien's user avatar
  • 459
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 ...
pratibhamenon's user avatar
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 ...
ShayakSarkar's user avatar
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 (...
Dominik's user avatar
  • 134
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 ...
Noel's user avatar
  • 3,900

15 30 50 per page
1
2 3 4 5
8