summaryrefslogblamecommitdiffstats
path: root/Under-Testing/Server-Code-New/startSoftware.py
blob: 2d54560b1e78a3d02296bc5c907f15b7c317e5bb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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