Is there a way for an external process (e.g. shell command) to cause Blender to execute a fragment of Python code (on Linux)?
Essentially I would like to make my own version of the "Python Console" that runs separately and sends commands to Blender (which is already running and continues to run as normal with commands being received in the background.)