This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-16
Channels
- # announcements (7)
- # babashka (8)
- # beginners (48)
- # calva (4)
- # cider (6)
- # circleci (2)
- # clj-commons (14)
- # clj-kondo (3)
- # clj-on-windows (7)
- # cljs-dev (34)
- # clojure (49)
- # clojure-dev (25)
- # clojure-europe (48)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-norway (33)
- # clojure-uk (2)
- # clojurescript (37)
- # community-development (5)
- # conjure (17)
- # cursive (2)
- # data-science (1)
- # editors (10)
- # emacs (50)
- # events (22)
- # honeysql (11)
- # introduce-yourself (1)
- # jobs-discuss (13)
- # lsp (42)
- # malli (9)
- # off-topic (7)
- # pathom (11)
- # portal (5)
- # re-frame (3)
- # reagent (22)
- # reitit (8)
- # reveal (1)
- # rewrite-clj (4)
- # shadow-cljs (38)
- # xtdb (21)
Run SQL queries against your system with babashka, osquery and honeysql: https://www.reddit.com/r/Clojure/comments/ywj903/run_sql_queries_against_your_system_and_get_back/

Hello! I’m experimenting with some babashka scripting and am having trouble diagnosing a problem. I’m attempting to pull an Openshift ConfigMap via their CLI tool and output it as JSON Everything works as expected when running this with “smaller” (say 1 - 10 KB) configMaps
(-> @(process "oc get configmap smaller-config-map -o json") :out slurp println)
But it just hangs with “larger” configMaps (131 KB is what I’ve seen fail so far but I’m trying to narrow the gap and figure out the threshold)
When run from a terminal the oc get ...
command behaves the same way regardless of which configMap is specified
Are there any suggestions on how I could diagnose this or proceed?@jackmoch Can you try (-> (shell {:out :string} "oc get configmap smaller-config-map -o json" ):out println)
instead? Of since you just want to see the output:
(shell "oc get configmap smaller-config-map -o json")
should do itif you remove the @
it should also work. The problem is that you're waiting for the process to end before you consume the stream, but when the buffer is full, the process can't continue
Ah yes that’s exactly what I’m looking for! It sounds like I need to spend some more time with the process and shell docs…👀 Thank you @borkdude!
@jackmoch No problem. It's described here: https://github.com/babashka/process#output-buffering