summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Server-Code-New/startSoftware.py
diff options
context:
space:
mode:
authorgsmselftest2011-11-16 18:06:02 +0100
committergsmselftest2011-11-16 18:06:02 +0100
commit8a7755d6f96e599fe75ac8e5e1c6994138f4b99e (patch)
tree9b320feb695cfbadd605808b2db5795e240e9399 /Under-Testing/Server-Code-New/startSoftware.py
parent delete dummy comment (diff)
downloadgsm-selftest-8a7755d6f96e599fe75ac8e5e1c6994138f4b99e.tar.gz
gsm-selftest-8a7755d6f96e599fe75ac8e5e1c6994138f4b99e.tar.xz
gsm-selftest-8a7755d6f96e599fe75ac8e5e1c6994138f4b99e.zip
under Testing folder
Diffstat (limited to 'Under-Testing/Server-Code-New/startSoftware.py')
-rw-r--r--Under-Testing/Server-Code-New/startSoftware.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/Under-Testing/Server-Code-New/startSoftware.py b/Under-Testing/Server-Code-New/startSoftware.py
new file mode 100644
index 0000000..2d54560
--- /dev/null
+++ b/Under-Testing/Server-Code-New/startSoftware.py
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+import ServerClass
+import subprocess
+
+while 1:
+ # try connect to website
+ server = ServerClass.ServerHandler(34600)
+ tried = server.openSocket()
+ 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)
+ server.closeConnection()
+ del server
+