コード例 #1
0
def main():
    logging.basicConfig()
    log = logging.getLogger()
    log.setLevel(10)
    DEBUGLEVEL.value = 99

    creds = sys.argv[1]
    hosts = sys.argv[2:]
    defs = []
    for host in hosts:
        defs.append(doOneDevice(creds, host))
    d = defer.DeferredList(defs)
    d.addBoth(lambda x: reactor.stop())
    reactor.run()
コード例 #2
0
ファイル: connect.py プロジェクト: NetNow/wmi-samba
def main():
    logging.basicConfig()
    log = logging.getLogger()
    log.setLevel(10)
    DEBUGLEVEL.value = 99

    creds = sys.argv[1]
    hosts = sys.argv[2:]
    defs = []
    for host in hosts:
        defs.append(doOneDevice(creds, host))
    d = defer.DeferredList(defs)
    d.addBoth(lambda x: reactor.stop())
    reactor.run()
コード例 #3
0
ファイル: wmic.py プロジェクト: Marvin-Lee/libwmiclient
 def stop(result):
     print result
     reactor.stop()
コード例 #4
0
 def stop(result):
     print result
     reactor.stop()