我想通过设置该通信的只读终端窗口来理想地调试两个进程之间的问题。这是我可以简单地使用现有的标准Linux实用程序? 的FIFO住在/run/myfifo,并与其中一个进程创建: /* Create a FIFO if one doesn't already exist */
int createFifo(char *filepath) {
if (access(path, F_OK)
我试图从bash/linux下的fifo中读取一个简短的python脚本,然后在收到某个单词时停止。我已经做了以下 在main.py import "sys"
while True:
line = sys.stdin.readline().rstrip()
sys.stdout.write(line + " read\n")
if line=="STOP":