|
|
|
@ -70,8 +70,6 @@ if len(sys.argv) > 1: |
|
|
|
sys.exit(1) |
|
|
|
sys.exit(1) |
|
|
|
if cmd == "start": |
|
|
|
if cmd == "start": |
|
|
|
print("Starting sargraph session '%s'" % sid) |
|
|
|
print("Starting sargraph session '%s'" % sid) |
|
|
|
print(["screen", "-dmSL", sid, os.path.realpath(__file__)]) |
|
|
|
|
|
|
|
p = subprocess.Popen(["screen", "-dmSL", sid, os.path.realpath(__file__)]) |
|
|
|
|
|
|
|
while p.poll() is None: |
|
|
|
while p.poll() is None: |
|
|
|
time.sleep(0.1) |
|
|
|
time.sleep(0.1) |
|
|
|
gpid = 0 |
|
|
|
gpid = 0 |
|
|
|
|