summaryrefslogtreecommitdiffstats
path: root/hyper
diff options
context:
space:
mode:
authortv <tv@iiso>2011-09-15 00:29:46 +0200
committertv <tv@iiso>2011-09-15 00:29:46 +0200
commit90be8b346c43da2b36c0b4872fcf1190cfaeaa85 (patch)
tree4e72472762529bcb77815ab4100b0ea339c1b110 /hyper
parent6a6ab5406787dd11f24e1ae9d76ead16185866b4 (diff)
//hyper README: initial commit
Diffstat (limited to 'hyper')
-rw-r--r--hyper/README.md15
-rw-r--r--hyper/process/test/bc.json11
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/"
+}