diff options
-rw-r--r-- | hyper/README.md | 15 | ||||
-rw-r--r-- | hyper/process/test/bc.json | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/hyper/README.md b/hyper/README.md new file mode 100644 index 00000000..07fa1de5 --- /dev/null +++ b/hyper/README.md @@ -0,0 +1,15 @@ +# Overview + +## start conductor on port 8888 and sink on 1337 + + //hyper/process/main + //bin/node //hyper/sink + +## create bc process and retrieve it's process id (AKA {path}) + + url=http://localhost:8888 + curl -fvsS --data-binary @//hyper/process/test/bc.json $url/proc + +## send data for calculation + + echo 9000+2^42 | curl -fvsS --data-binary @- $url/{path} diff --git a/hyper/process/test/bc.json b/hyper/process/test/bc.json new file mode 100644 index 00000000..5b3b0721 --- /dev/null +++ b/hyper/process/test/bc.json @@ -0,0 +1,11 @@ +{ + "path": "/usr/bin/bc", + "argv": [ + "bc" + ], + "envp": { + "was": "geht" + }, + "stdout": "http://127.0.0.1:1337/", + "stderr": "http://127.0.0.1:1337/" +} |