#!/usr/bin/env python2.7 from module import * import time import threading import sys if __name__ == '__main__': t = {} writepid(sys.argv[1]) # Run through all the cams in config for cam in sys.argv[1].split(): # Create a cam threath t[cam] = stream(cam) # Start the threath t[cam].start() time.sleep(1) # Creaete signal traps trap(t) time.sleep(6) # Run forever while True: time.sleep(12)