mkfifo Questions

3

Solved

I want to use os.mkfifo for simple communication between programs. I have a problem with reading from the fifo in a loop. Consider this toy example, where I have a reader and a writer working with...
Thermotherapy asked 3/7, 2013 at 13:18

3

Solved

I have gone through a variaty of different linux named pipe client/server implementations but most of them use the blocking defaults on reads/writes. As I am already using poll() to check other fl...
Paralyze asked 24/2, 2013 at 18:30

6

Solved

How can you create a temporary FIFO (named pipe) in Python? This should work: import tempfile temp_file_name = mktemp() os.mkfifo(temp_file_name) open(temp_file_name, os.O_WRONLY) # ... some proc...
Melodic asked 16/9, 2009 at 1:16

2

Solved

This is my simple code that opens a named pipe, writes a string to it, and then closes the pipe. The pipe is created in a another function, as mentioned below. char * ipcnm = "./jobqueue"; std::...
Up asked 7/6, 2014 at 17:12

1

I am wondering if there is a Windows equivalent for Linux mkfifo. By equivalent, I mean way of creating files, with st_mode S_IFIFO. Thanks for answers.
Servility asked 25/7, 2015 at 10:16

1

Solved

What is the difference between mkfifo() and mknod() while creating a named pipe? I tried searching but couldn't get a satisfactory answer.
Griffith asked 25/3, 2017 at 23:52

1

Solved

Is it possible to write to stdin of external process In Elixir? Is NIF the only option right now? The process that started from Elixir, blocks and wait for user input: pid = spawn(fn -> Syste...
Tippett asked 7/12, 2016 at 19:27

6

I'd like to set up a blocking file read in Java. That is, have a file such that when wrapped by FileInputStream and any read() method is call, the call blocks. I can't think of an easy OS-independ...
Bazemore asked 20/1, 2015 at 23:25

2

Solved

I was trying to do something simple with a FIFO: read the lines, but not all at once, and it unexpectedly "did not work". This is OK: $ f=$(mktemp -u) $ mkfifo $f $ { seq 5 > $f; } & [1] 2...
Jaala asked 15/4, 2014 at 15:50

2

Solved

Something very strange is happening when I open FIFOs (named pipes) in Python for writing. Consider what happens when I try to open a FIFO for writing in a interactive interpreter: >>> fi...
Stoeber asked 13/8, 2011 at 2:8

1

Solved

I am trying to use PhantomJS to render an html page to pdf. I do not want to write the files to disk, I have the html in memory, and I want the pdf in memory. Using the excellent answer from Poo...
Wu asked 13/9, 2012 at 10:3

1

Solved

I want to do what I wrote in the title. But I just simply can't get my head around it. I also googled everythng. I want to write strings to file of special type FIFO, created by mkfifo (I think). I...
Fiji asked 21/6, 2013 at 17:30

1

I am trying to create a named pipe inside Ruby. Besides using the system command (system("mkfifo #{pipe_name}")), is there a native Ruby function allowing me to do this?
Nebulous asked 22/6, 2013 at 5:6

2

Solved

The mkfifo function takes 2 arguments, path and mode. But I don't know what is the format of the path that it uses. I am writing a small program to create a named pipe and as path in the mkfifo. Us...
Caplan asked 23/10, 2012 at 22:1

2

I use mkfifo to create a named pipe. Then I use the following program to open it. However, the program hangs at the line "fopen". Is there something wrong here? int main(int argc, char** argv) { c...
Funereal asked 14/12, 2011 at 16:17

1

Solved

Situation: new_pipe = os.open(pipe_path, os.O_RDONLY | os.O_NONBLOCK) # pipe_path points to a FIFO data = os.read(new_pipe, 1024) The read occasionally raises errno -11: Resource temporarily una...
Halloo asked 5/4, 2012 at 2:6

2

Solved

I'm trying to write simple client and server C programs, communicating with each other in separate terminals. The server has to create a public fifo and wait for the client. Meanwhile the client i...
Forgo asked 23/12, 2011 at 0:0

1

Solved

The above program i have typed in linux. It basically has to connect a client and server in separate terminals. But when i run them in the correct order, i.e Compile server -> run server Compil...
Margiemargin asked 8/11, 2011 at 3:31

2

Why can't I use exec 3>myfifo in the same manner in a bash script as I can in my terminal? I'm using named pipes to turn an awk filter into a simple "server", that should be able to take text inp...
Kirby asked 21/3, 2011 at 10:39

2

Solved

I was trying to understand FIFOs using Python under linux and I found a strange behavior i don't understand. The following is fifoserver.py import sys import time def readline(f): s = f.readlin...
Desertion asked 22/2, 2011 at 21:30

2

I'd like to create a named pipe, like the one created by "mkfifo", but one caveat. I want the pipe to be bidirectional. That is, I want process A to write to the fifo, and process B to read from it...
Georgia asked 31/8, 2009 at 18:32
1

© 2022 - 2025 — McMap. All rights reserved.