1#!/usr/bin/env python 2 3import os, time 4 5command="dump_baseline_plus.py " 6 7now=time.strftime("%Y-%m-%d-%H:%M:%S", time.localtime()) 8YESTERDAY = time.strftime("%Y%m%d", time.localtime(time.time() - (24*60*60))) 9 10collate_filename='collate.'+now 11collate_sort_filename='collate.sort.'+now 12 13commandfull=command+"baseline.db >"+collate_filename 14print commandfull 15os.system(commandfull) 16 17commandfull=command+"daily/20070312.db >>"+collate_filename 18print commandfull 19os.system(commandfull) 20 21commandfull=command+"daily/20070313.db >>"+collate_filename 22print commandfull 23os.system(commandfull) 24 25commandfull="sort "+collate_filename+" > "+collate_sort_filename 26print commandfull 27os.system(commandfull) 28