PixaClaw - Linux 管道通信
约 243 字小于 1 分钟
2026-03-07
基于 Linux 命名管道(FIFO IPC)的纯 Shell 实现版本,极致的 Linux 集成。
核心特性
管道通信
- FIFO 命名管道
- 进程间通信
- 管道复用
- 低开销
纯 Shell
- 纯 Bash
- 无外部依赖
- 极致轻量
- 易于修改
Linux 集成
- 系统工具
- 管道组合
- 文本处理
快速开始
# 创建管道
mkfifo /tmp/pixaclaw_input
mkfifo /tmp/pixaclaw_output
# 启动
./pixaclaw.sh &
# 通信
echo "你好" > /tmp/pixaclaw_input
cat /tmp/pixaclaw_output技术实现
#!/bin/bash
# 创建管道
INPUT_FIFO="/tmp/pixaclaw_in"
OUTPUT_FIFO="/tmp/pixaclaw_out"
mkfifo $INPUT_FIFO $OUTPUT_FIFO
# 主循环
while true; do
# 读取输入
read -r message < $INPUT_FIFO
# 处理
response=$(process "$message")
# 输出
echo "$response" > $OUTPUT_FIFO
done相关链接
- GitHub: pixaclaw/pixaclaw