2022-12-24 17:42:40 +01:00
|
|
|
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
2023-02-27 21:59:02 +01:00
|
|
|
date="2023-02-03"
|
2022-12-24 17:09:22 +01:00
|
|
|
author="spanskiduh"
|
|
|
|
title="named_pipes"
|
2022-12-24 17:42:40 +01:00
|
|
|
description="click to read about named_pipes"
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
|
|
|
# Named pipes
|
|
|
|
|
|
|
|
They are very useful for transmiting data of one linux process to another.
|
|
|
|
|
|
|
|
### Creation of named pipe
|
|
|
|
- `mkfifo my_pipe`
|
|
|
|
|
|
|
|
### Sending and recieving data
|
|
|
|
- `echo "Hello my friend!" > my_pipe` ~ sending data to pipe
|
|
|
|
- `tail -f my_pipe` ~ reading data from pipe
|