Skip to content
/ bashpipe Public

Clojure library maintaining a long lived bash shell in order not to spawn a process everytime you shell out.

License

Notifications You must be signed in to change notification settings

jsab/bashpipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bashpipe

This small experiment maintains a long-lived bash process used to execute system commands. Somehow, it is significantly faster than clojure.java.shell/sh.

Installation

Add the following dependency to your project.clj file:

[bashpipe "0.1.0-SNAPSHOT"]

Usage

(bashpipe.core/sh "ls" "-la")

Issues

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.

License

Copyright © 2014 Jean-Sebastien A. Beaudry

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Clojure library maintaining a long lived bash shell in order not to spawn a process everytime you shell out.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published