I want to build a script that can be controlled while running from another scripts. For example I want to run my script like this:
~: Server &
So you need to talk to a running process right? What about the idea of unix domain socket?
In your server you can build up a socket on a path of your unix file system, then talk to that socket in you client, like described in this link I googled:
http://pymotw.com/2/socket/uds.html