Is communication between two ruby ​​processes possible?

If I have a ruby ​​script Daemonthat, as the name implies, works like a daemon, controls parts of the system and can execute commands that require authentication, for example, changing permissions, there is an easy way to have a second ruby ​​script, say client, report this script and send him commands / request information? I am looking for a built-in ruby ​​way to do this, I would prefer not to create my own server protocol here.

+3
source share
2 answers

Ruby provides many mechanisms for this, including your standards, such as: sockets , shared memory . But Ruby also has a higher-level library, especially for IPC, which you can check here , Drb. I did not have the opportunity to play with him too much, but it looks really cool.

+4
source
+1
source

Source: https://habr.com/ru/post/1779623/


All Articles