Skip to content

Instantly share code, notes, and snippets.

@dedan
Created October 12, 2011 13:01
Show Gist options
  • Save dedan/1281168 to your computer and use it in GitHub Desktop.
Save dedan/1281168 to your computer and use it in GitHub Desktop.
senna server
import subprocess
import sys
import time
try:
p = subprocess.Popen([sys.executable, '-m', 'Pyro4.naming'],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
time.sleep(5)
except Exception, e:
raise e
finally:
p.terminate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment