From 90be8b346c43da2b36c0b4872fcf1190cfaeaa85 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 15 Sep 2011 00:29:46 +0200 Subject: //hyper README: initial commit --- hyper/README.md | 15 +++++++++++++++ hyper/process/test/bc.json | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 hyper/README.md create mode 100644 hyper/process/test/bc.json 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/" +} -- cgit v1.2.3