This small experiment maintains a long-lived bash process used to execute system commands. The objective is not having to spawn a process for every call like clojure.java.shell.
(bashpipe.core/sh "ls" "-la")
Having a single bash process means that commands are executed sequentially and that if one command hangs, it will block all other commands.
A named pipe is created in the mechanism of communication with the bash process. That named pipe is never removed.
Copyright © 2014 Jean-Sebastien A. Beaudry
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close