joker 2019-12-30

@neeasade has joined the channel

hello -- can I use joker to create/listen on a file socket -- just browsing the docs currently

Joker supports a socket Repl (e.g. joker --repl :5555), but not file sockets directly.

Have you looked into doing something like this (exploiting Joker support for reading from stdin)? https://stackoverflow.com/questions/26390126/is-it-possible-to-attach-unix-socket-as-stdin-to-process-in-bash

that works fine, thanks

well wait -- @james-clojure how can I create the socket and send things to it first with socat?

(the link is just for listening, right?)

I think it is just for listening. You might want another socket for stdout/stderr. I'm not an expert on this stuff ordinarily (ditto how to create the socket in the first place), so I generally have to re-read man pages and such to come up to speed. E.g. I vaguely recall something like mkpipe being involved, but that might be a different animal entirely.

gotcha gotcha --- well thanks for the idea anyway -- previously I had done this with mkfifo and then just read lines from that -- might be the way I go again rather than socket

Ah, mkfifo sounds good; hope you can get that to work!

(if candid if watching, thanks for joker! am scratching the 'clojure for scripting' itch here too!)

👍 2
👀 1