Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mkfifo]

The tag has no usage guidance.

1
vote
0answers
14 views

Where should I place named pipe files on RHEL7?

I done some quicky web searches to find out how to make a named pipe. It looks very straight forward I just need to execute as root: mkfifo filename, but what the best practice on where on the ...
2
votes
1answer
40 views

How to create a bidirectional pipe in bash?

I have a program which reads from and writes to file descriptor 3. I want to let it write to fd 3, and be able to write to the other end of the pipe interactively which the program should read over ...
0
votes
0answers
279 views

Cleaning/flushing of named pipe

I create FIFO to communicate between unrelated processes. In my project there is no way to break infinite loop in which the program runs. So, I can't unlink the FIFO. I thought that I could remove ...
0
votes
1answer
165 views

Process substitution vs FIFO (created by `makefifo`)

As far as I know, process substitution in bash and FIFO (created by mkfifo) are both named pipes. They both seem viable solutions for communication between processes. I was wondering how to decide ...
0
votes
1answer
36 views

When does a command in a process substitution or FIFO start and finish running?

When does a command in a process substitution in bash start and finish running? E.g. when does command1 in command2 >(command1) start and finish running respectively? when does command3 in ...
1
vote
1answer
523 views

What is the purpose of using a FIFO vs a temporary file or a pipe?

From APUE FIFOs can be used to duplicate an output stream in a series of shell commands. This prevents writing the data to an intermediate disk file (similar to using pipes to avoid intermediate ...
3
votes
1answer
500 views

How does this command work? mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc -l 1234 > /tmp/f

Today I was reading the nc man page and stumbled on this command. I know that: mkfifo /tmp/f is creating a named pipe at /tmp/f. cat /tmp/f is printing whatever is written to that named pipe and the ...
2
votes
1answer
628 views

pipe data into process that's already started

Say I start a node.js process like so: node script.js & is there a way to pipe data into that process after it has started? normally, we do this: cat <file> | node script.js but the ...