summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Server-Code-New/startSoftware.py
diff options
context:
space:
mode:
authorTriatmoko2011-11-17 04:24:51 +0100
committerTriatmoko2011-11-17 04:24:51 +0100
commit25128f34cdfae5318d1a38441bf09781ef91a2ba (patch)
tree004e2ee7c744b10acf024e945008d472dc8f03d0 /Under-Testing/Server-Code-New/startSoftware.py
parentdelete unused files (diff)
downloadgsm-selftest-25128f34cdfae5318d1a38441bf09781ef91a2ba.tar.gz
gsm-selftest-25128f34cdfae5318d1a38441bf09781ef91a2ba.tar.xz
gsm-selftest-25128f34cdfae5318d1a38441bf09781ef91a2ba.zip
update loging files for every handler and fic device configuration function
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