I have a program when run, starts listing on on port 12345
My linux administrator says it's against the policy to open ports. He says I'm allowed to use ~/cool_script.sock (unix domain socket) for communication. Apparently, his nginx server can read and write to the sock as if it was a tcp port.
Anyway, is there a way to wrap an executable (./cool_script.pl) so that it's attempt at opening a listening port is redirected to a .sock file.
What I tried: read some documentation for socat