Fork me on GitHub
#joker
<
2019-12-30
>
neeasade15:12:25

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

jcburley15:12:33

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

jcburley15:12:50

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

neeasade15:12:41

that works fine, thanks

neeasade15:12:37

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

neeasade15:12:05

(the link is just for listening, right?)

jcburley15:12:24

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.

neeasade15:12:26

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

jcburley15:12:54

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

neeasade15:12:57

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

👍 2
👀 1