This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-02
Channels
- # adventofcode (5)
- # arachne (2)
- # bangalore-clj (1)
- # beginners (8)
- # boot (195)
- # cider (28)
- # cljs-dev (35)
- # cljsrn (4)
- # clojure (295)
- # clojure-brasil (5)
- # clojure-gamedev (2)
- # clojure-greece (2)
- # clojure-korea (13)
- # clojure-russia (60)
- # clojure-spec (58)
- # clojure-uk (92)
- # clojurescript (31)
- # clojurex (4)
- # css (1)
- # cursive (13)
- # datomic (40)
- # devcards (2)
- # emacs (17)
- # events (1)
- # flambo (3)
- # garden (9)
- # hoplon (31)
- # jobs (3)
- # klipse (1)
- # lein-figwheel (1)
- # london-clojurians (1)
- # luminus (2)
- # mount (36)
- # off-topic (13)
- # onyx (8)
- # pamela (1)
- # pedestal (1)
- # planck (3)
- # proto-repl (16)
- # protorepl (11)
- # re-frame (78)
- # reagent (4)
- # rethinkdb (6)
- # ring-swagger (1)
- # specter (8)
- # untangled (10)
- # vim (1)
hi, I have a basic question on Planck: when executing a shell command, how can you return from the script into your shell with :err going to stderr, :out going to stdout?
@stijn ClojureScript defines *print-err-fn*
and Planck sets this up to go to stderr. So, with foo.cljs
(*print-err-fn* "stderr")
(*print-fn* “stdout”)
and then
planck foo.cljs 2> /tmp/stderr.txt
you will see that stdout
is printed on your terminal while the stderr
is redirected to the file.
With this you could do something along the lines of (*print-err-fn* (:err sh-result))
and similarly with stdout, and then (planck.core/exit 0)