HTTP streaming for shell command output.
$ java -jar clj-stream-sh-0.0.1-SNAPSHOT-standalone.jar
$ curl -v http://127.0.0.1:8080?cmd=ping+google.com'
Or just open in your browser (Chrome, Firefox, Safari) http://127.0.0.1:8080
- Download jar
$ wget http://dl.dropbox.com/u/27498455/clj-stream-sh-0.0.1-SNAPSHOT-standalone.jar
- Download chat shell script
$ wget https://raw.github.com/mshytikov/clj-stream-sh/master/examples/chat/post
- Make script executable
$ chmod +x post
- Start server
$ java -jar clj-stream-sh-0.0.1-SNAPSHOT-standalone.jar
- Open url in different browsers http://127.0.0.1:8080
- To post your message write something like
./post hello world
in the input field and submit.
This example here