Skip to main content

All Questions

Tagged with
2 votes
0 answers
75 views

How do I print a matrix in a window using ncurses?

My program reads through a named pipe a two-dimensional matrix that contains a maze and my objective is for it to be printed in a top window using ncurses, but it is not working. Note: The maze is ...
João Simões's user avatar
0 votes
1 answer
286 views

C language pipe between 2 child processes blocks indefinitely

I am trying to make a program to takes a command including pipes and then executes it. This is a simplified version of it where I'm trying to pipe the ls and wc command: #include <stdio.h> #...
Labeeb's user avatar
  • 31
0 votes
1 answer
816 views

Named pipes for client-server simulation in 2 terminals

I know the title doesn't explain the problem precisely and I apologize. I've been writing a program in C of named pipes and the goal of it is to open 2 windows of the terminal, each running either the ...
Chefi's user avatar
  • 41
0 votes
2 answers
738 views

C Linux program using named pipes works as expected when one process at a time writes into the FIFO, but breaks when more instances do it

My program has a consumer and multiple producers. The producers each read a different file and write their content into a FIFO in N-sized chunks, with a leading parameter for the consumer to interpret....
JustAnEuropean's user avatar
2 votes
0 answers
234 views

Terminate a thread blocked on opening an input stream from a UNIX named pipe

I am using java IO streams to read commands from a Unix named pipe. The program has a thread that creates a named pipe with mkfifo and then listens to it, allowing the user to send commands to it ...
Helluys's user avatar
  • 31
0 votes
1 answer
249 views

How to unblock a thread blocking on a deleted named pipe?

I have a Python program which uses named pipes for various purposes. Each pipe is managed from a different thread so it won't block the main thread. Let's say I have a thread which is blocking on a ...
krispet krispet's user avatar
0 votes
2 answers
52 views

Removing endline character

So I'm trying to read from a fifo-file (a named pipe basically), but when I'm doing a string comparison, using strcmp() it is not giving expected output. I tried getting the length of the message ...
ketodev's user avatar
  • 11
0 votes
0 answers
190 views

Sharing multiple pipes with subprocess for Windows and Unix

I currently have a worker subprocess that does a lot of processing for my main application. I have my stdin and stdout already connected between the two, but now I need more than just these two ...
Hugo Coppejans's user avatar
0 votes
1 answer
280 views

Concurrent writes to mkfifo seem to get lost

I am writing a script that will setup an environment of machines. I have the ability to put a startup script on the machines and so I am trying to use a named pipe mkfifo in unix on my "workstation" ...
CraigR8806's user avatar
  • 1,584
1 vote
0 answers
326 views

named pipe not working when exec() is used

I'm trying to send some data from php staight into a running cpp script. I'm trying to do this using a named pipe in a "send" application. Let me share some code first. loop.cpp main( int argc, char*...
Laurens Mathues's user avatar
5 votes
1 answer
3k views

How to wait for the other end of a named pipe to be open?

I would like to exchange data between 2 processes (A and B) using 2 named pipes (a2b and b2a) as follows: Process A creates the a2b and b2a pipes using mkfifo(3). Process A starts process B (either ...
maddouri's user avatar
  • 3,787
3 votes
0 answers
956 views

Using named pipe for 1 reader / N writers, in python

There is a decent amount of material about these topics on stack overflow, none of which answers exactly my question (see below) but it helped me find possible solutions. However I am wondering how ...
Pierre's user avatar
  • 31
1 vote
1 answer
963 views

Why my named pipe input command line just hangs when it is called?

Why my named pipe input command line just hangs when it is called? Based on the answers: Writing to stdin of background process Accessing bash command line args $@ vs $* Send command to a background ...
Evandro Coan's user avatar
  • 9,140
0 votes
1 answer
656 views

Cannot reopen FIFO when the same process uses both ends of the FIFO

When using a FIFO on a single process, it looks like after both ends have been opened and one is then closed, it is not possible to reuse the FIFO. Any attempt to reopen the closed end fails or the ...
Guett31's user avatar
  • 322
0 votes
0 answers
416 views

Unix named pipe, multiple writers or multiple pipes

I am currently measuring performance of named pipe to compare with another library. I need to simulate a clients (n) / server (1) situation where server read messages and do a simple action for every ...
Francois Gingras's user avatar

15 30 50 per page