summaryrefslogtreecommitdiffstats
path: root/Website/startSoftware.py
diff options
context:
space:
mode:
Diffstat (limited to 'Website/startSoftware.py')
-rw-r--r--Website/startSoftware.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Website/startSoftware.py b/Website/startSoftware.py
new file mode 100644
index 0000000..191f66e
--- /dev/null
+++ b/Website/startSoftware.py
@@ -0,0 +1,14 @@
+import ServerClass
+import subprocess
+
+while 1:
+ server = ServerClass.ServerHandler(34600)
+ tried = server.openSocket()
+
+ test = server.receiveData(2)
+ if test == 'START APP':
+ print 'start'
+ subprocess.Popen(args=['gnome-terminal','--command= python /home/gsmselftest/gsm-selftest/For\ Weekly\ Test/tricode/gsmselftest-website2.py'])
+ print server.closeConnection()
+ del server
+