X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=commands%2Freboot.py;h=4963900bbdf608380a7c9fc0e5ff3caa38e1ec19;hb=a947da59b6ed3b9fe3c50ad67111105c8734581b;hp=92e0f690210f036629a969abbeeee00f3f8c79cb;hpb=e637272100e8e03884188cb2118b21158e739bb0;p=monitor.git diff --git a/commands/reboot.py b/commands/reboot.py index 92e0f69..4963900 100755 --- a/commands/reboot.py +++ b/commands/reboot.py @@ -1,6 +1,7 @@ #!/usr/bin/python from monitor.reboot import * +import time def main(): logger.setLevel(logging.DEBUG) @@ -31,7 +32,7 @@ def main(): print err if __name__ == '__main__': - main() + #main() f = open("/tmp/rebootlog", 'a') - f.write("reboot %s\n" % sys.argv) + f.write("reboot %s %s\n" % (time.time(), " ".join(sys.argv[1:]))) f.close()