Changeset 62
- Timestamp:
- 02/23/12 14:22:24
- Files:
-
- watcher/trunk/alerter.py (modified) (1 diff)
- watcher/trunk/reader.py (modified) (2 diffs)
- watcher/trunk/watcher.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
watcher/trunk/alerter.py
r60 r62 1 #!/usr/bin/env python2 3 1 import sys 4 2 watcher/trunk/reader.py
r60 r62 1 #!/usr/bin/env python2 3 1 import sys 4 2 import re … … 41 39 print "\nFresh GPS fix for %s: %.3f %.3f." % (glider, float(lat), float(lon)), 42 40 sys.stdout.flush() 43 process = subprocess.Popen("%s %s %s %s %s %s %s" % \ 44 (sys.executable, 45 "/home/localuser/pilottools/lb/toolshed/points/points.py", 46 glider, 47 lat, 48 lon, 49 "bearing", 50 "337.5"), 51 shell=True) 41 process = subprocess.Popen([sys.executable, 42 "/home/localuser/pilottools/lb/toolshed/points/points.py", 43 glider, 44 lat, 45 lon, 46 "bearing", 47 "0"]) 52 48 process.wait() 53 49 break watcher/trunk/watcher.py
r60 r62 1 #!/usr/bin/env python2 3 1 import sys 4 import os5 2 import time 6 3 import subprocess … … 50 47 sys.stdout.flush() 51 48 for task in tasks[glider]: 52 processes.append(subprocess.Popen("%s %s %s %s" % \ 53 (sys.executable, 54 os.path.join( 55 os.path.dirname( 56 os.path.abspath(__file__)), 57 task), 58 glider, 59 logs[-1]), 60 shell=True)) 49 processes.append(subprocess.Popen([sys.executable, 50 task, 51 glider, 52 logs[-1]]))