Browse Source

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 years ago
parent
commit
9deaf8a369
1 changed files with 7 additions and 0 deletions
  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}"
+