Index: watcher/trunk/alerter.py =================================================================== --- watcher/trunk/alerter.py (revision 60) +++ watcher/trunk/alerter.py (revision 62) @@ -1,4 +1,2 @@ -#!/usr/bin/env python - import sys Index: watcher/trunk/reader.py =================================================================== --- watcher/trunk/reader.py (revision 60) +++ watcher/trunk/reader.py (revision 62) @@ -1,4 +1,2 @@ -#!/usr/bin/env python - import sys import re @@ -41,13 +39,11 @@ print "\nFresh GPS fix for %s: %.3f %.3f." % (glider, float(lat), float(lon)), sys.stdout.flush() - process = subprocess.Popen("%s %s %s %s %s %s %s" % \ - (sys.executable, - "/home/localuser/pilottools/lb/toolshed/points/points.py", - glider, - lat, - lon, - "bearing", - "337.5"), - shell=True) + process = subprocess.Popen([sys.executable, + "/home/localuser/pilottools/lb/toolshed/points/points.py", + glider, + lat, + lon, + "bearing", + "0"]) process.wait() break Index: watcher/trunk/watcher.py =================================================================== --- watcher/trunk/watcher.py (revision 60) +++ watcher/trunk/watcher.py (revision 62) @@ -1,6 +1,3 @@ -#!/usr/bin/env python - import sys -import os import time import subprocess @@ -50,11 +47,6 @@ sys.stdout.flush() for task in tasks[glider]: - processes.append(subprocess.Popen("%s %s %s %s" % \ - (sys.executable, - os.path.join( - os.path.dirname( - os.path.abspath(__file__)), - task), - glider, - logs[-1]), - shell=True)) + processes.append(subprocess.Popen([sys.executable, + task, + glider, + logs[-1]]))