This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-06
Channels
- # announcements (33)
- # babashka (13)
- # babashka-sci-dev (23)
- # beginners (94)
- # calva (105)
- # cider (37)
- # circleci (1)
- # clj-kondo (45)
- # cljs-dev (59)
- # cljsrn (2)
- # clojure (145)
- # clojure-czech (1)
- # clojure-europe (19)
- # clojure-nl (18)
- # clojure-norway (13)
- # clojure-portugal (1)
- # clojure-uk (5)
- # clojurescript (19)
- # community-development (2)
- # conjure (3)
- # copenhagen-clojurians (1)
- # core-async (34)
- # data-science (6)
- # datomic (25)
- # emacs (43)
- # fulcro (19)
- # graalvm (7)
- # graalvm-mobile (12)
- # graphql (10)
- # honeysql (3)
- # hyperfiddle (3)
- # improve-getting-started (2)
- # interop (20)
- # kaocha (3)
- # lsp (16)
- # meander (7)
- # off-topic (22)
- # other-languages (14)
- # portal (15)
- # releases (1)
- # rewrite-clj (2)
- # ring (1)
- # shadow-cljs (119)
- # spacemacs (19)
- # sql (65)
- # testing (4)
- # tools-deps (11)
- # xtdb (29)
with sh
or babashka/process
how can I launch another process and then detach? Like fire and forget.
@rickheere babashka/process already does that automatically by being async. with sh
this isn't possible since it waits for the process to finish
detaching isn't exactly the same as async. on unix-like systems it's usually done by fork + setsid + fork
unless that's not what they mean 😅
some day my knowledge of this stuff will become useful again! today is not that day
Yeah in this case I just want the bb script to launch an application and then have my terminal back. So good enough for me at this moment.
yeah the only gotcha there is if your terminal receives SIGHUP and it passes that on to child process groups
A markdown library by @asko304 that also works in bb: https://github.com/askonomm/clarktown
Another interesting thing that works with babashka: https://twitter.com/borkdude/status/1511829490732777477
RCF is quite deep in use of macrology and async stuff, if I remember well. This speaks well of bb!