浏览代码

I need the pipexec example.

That's the only correct way to do this!
Otherwise using the weird fifo pipes, I can't
tell when the main application exits.
bugz 4 年之前
父节点
当前提交
9deaf8a369
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      test_MC.sh

+ 7 - 0
test_MC.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+
+# cat fifo | build/doorman /usr/bin/mc 2>&1 | nc -l 127.0.0.1 2023 > fifo
+
+pipexec -- [ NETCAT /bin/netcat -l 2023 ] [ MC build/doorman /usr/bin/mc ] "{NETCAT:1>MC:0}" "{MC:1>NETCAT:0}"
+