I am doing a distributed systems job, in which I am using PYRO, in it I am using objeto.adapter.rebindURI()
to use the same object when the server that was (downed) is "restarted" ...
I want this restart to be from my Python program ... in case I thought about calling a new window and running my server program ...
Does anyone know how to do it? I tried N times and I could not. It gives the following error:
Traceback (most recent call last): File "serverApp.py", line 7, in <module> subprocess.Popen(cmd, stdout=subprocess.PIPE) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
I've tried something like this ...
import subprocess
cmd = ["xterm"]
cmd.extend(['-e','bash','-c','python serverApp.py; exec $SHELL'])