mkfifo
Create named pipes (FIFOs) for inter-process communication. Blocks readers until a writer connects, and safely fails if the path already exists.
Instructions
Create named pipes (FIFOs) for inter-process communication. Destructive: creates a special file that blocks readers until a writer connects (and vice versa). Fails safely if the path already exists (idempotent). Use --dry_run to preview without touching the filesystem. Use --mode to set permissions (default 666). Use --parents to auto-create missing parent directories. Returns JSON with the created path, mode, and status on success; on error, returns structured JSON with exit code and error message on stderr. Use when you need a FIFO pipe for shell-style IPC between processes. Not for creating regular files — use 'touch'. Not for regular directories — use 'mkdir'. Not for device nodes — use 'mknod'. See also 'mknod', 'mkdir', 'touch'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report operations without changing files. | |
| mode | No | Octal mode such as 600 or 666. | 666 |
| parents | No | Create missing parent directories. | |
| paths | Yes | FIFO paths to create. |