Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 680 Bytes

Unix-Examples.md

File metadata and controls

25 lines (19 loc) · 680 Bytes

To run arbitrary Unix / Linux binaries simply use the following syntax:

microcule echo "hello world"
microcule ls
microcule tail -f ReadMe.md

Very simple!

# mount any arbitrary command to a streaming HTTP endpoint

microcule echo "hello world"
microcule cat ReadMe.md
microcule tail -f ReadMe.md

# pipe in data from arbitrary commands
# using examples from: https://github.com/Stackvana/microcule/examples

echo "hello world" | microcule ./examples/services/echo/echo-stdin.js
ls | microcule ./examples/services/echo-stdin.js
ls | microcule ./examples/streams/transform.js
tail -f ReadMe.md | microcule --stream=true ./examples/services/streams/echo.js