summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Server-Code-New/startSoftware.py
diff options
context:
space:
mode:
Diffstat (limited to 'Under-Testing/Server-Code-New/startSoftware.py')
-rw-r--r--Under-Testing/Server-Code-New/startSoftware.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/Under-Testing/Server-Code-New/startSoftware.py b/Under-Testing/Server-Code-New/startSoftware.py
index 2d54560..b2beb58 100644
--- a/Under-Testing/Server-Code-New/startSoftware.py
+++ b/Under-Testing/Server-Code-New/startSoftware.py
@@ -1,7 +1,9 @@
#! /usr/bin/env python
import ServerClass
-import subprocess
+import subprocess
+import setproctitle
+setproctitle.setproctitle('Start Software')
while 1:
# try connect to website
server = ServerClass.ServerHandler(34600)
@@ -9,9 +11,11 @@ while 1:
test = server.receiveData(2)
if test == 'START APP':
print 'start'
- #subprocess.Popen(args=['gnome-terminal','--command= python gsmselftest.py'])
- script = 'gsmselftest.py'
- subprocess.Popen(['python',script], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ try:
+ script = 'gsmselftest.py'
+ subprocess.Popen(['python',script], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ except ValueError:
+ print " - can't start controller software -"
server.closeConnection()
del server