I'd like to redirect an applications input and output to a unix socket and connect to that socket from another session. What I'm doing so far is the following:
On the "server" side:
socat EXEC:"command" UNIX-LISTEN:/tmp/comm
And on the "client" side:
socat UNIX-CONNECT:/tmp/comm -
It works pretty good, but as soon as the client-side socat terminates, the server terminates, too. But I'd like it to keep running and reconnect later... How do I accomplish that?