Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error: IOException Stream closed java.lang.ProcessBuilder$NullOutputStream.write (ProcessBuilder.java:433) #38

Open
jelmerderonde opened this issue Jan 29, 2017 · 0 comments

Comments

@jelmerderonde
Copy link

I'm new to Clojure and using conch to feed output from my program to feedgnuplot to track its progress.

First I make a 'plotter' using the low-level sh/proc:

(:require [me.raynes.conch.low-level :as sh])

(defn make-plotter
    "Returns a plotter ready to plot!"
    []
    (sh/proc "feedgnuplot" "--stream"))

And I feed data to it using sh/feed-from-string:

(defn plot-point
    "Adds a point to a plotter"
    [plotter point]
    (sh/feed-from-string plotter (str point "\n")))

However I get the following error:

IOException Stream closed  java.lang.ProcessBuilder$NullOutputStream.write (ProcessBuilder.java:433)

Is this a bug? Or am I doing something wrong?

Thanks in advance for taking a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant