1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/python import sys sys.path.append('/usr/lib/anaconda') def usage(): sys.stderr.write("syslogd [root] [output file]") if __name__ == "__main__": from syslogd import Syslogd if len(sys.argv) != 3: usage() sys.exit(1) root = sys.argv[1] output = sys.argv[2] syslog = Syslogd (root, open (output, "a"))