Example #1
0
def main():
  parser = server.make_config_parser()
  shell.add_parser_arguments(parser)
  conf = parser.parse_args()

  s = shell.Shell(ServerShell, conf, banner1=BANNER)

  if conf.filename is not None:
    with open(conf.filename, "r") as f:
      s.thread.do(s.ex, f.read())
  else:
    s.mainloop()
Example #2
0
def main():
    parser = server.make_config_parser()
    shell.add_parser_arguments(parser)
    conf = parser.parse_args()

    s = shell.Shell(ServerShell, conf, banner1=BANNER)

    if conf.filename is not None:
        with open(conf.filename, "r") as f:
            s.thread.do(s.ex, f.read())
    else:
        s.mainloop()
Example #3
0
def main():
  server.Application(server.make_config_parser().parse_args()).once(repair)
Example #4
0
def main():
    Manager(server.make_config_parser().parse_args()).run()
Example #5
0
def main():
  Manager(server.make_config_parser().parse_args()).run()