(command)
| 38 | f.close() |
| 39 | |
| 40 | def run(command): |
| 41 | log('\n\n%s: RUN: %s\n' % (datetime.datetime.now(), command)) |
| 42 | if os.system('%s >> %s 2>&1' % (command, LOG)): |
| 43 | msg = ' FAILED: %s [see log %s]' % (command, LOG) |
| 44 | print(msg) |
| 45 | raise RuntimeError(msg) |
| 46 | |
| 47 | |
| 48 | def runAndSendGPGPassword(command, password): |