summaryrefslogtreecommitdiff
path: root/tools/halt.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-02-27 15:49:48 +0100
committerMagnus Ahltorp <map@kth.se>2015-02-27 15:49:48 +0100
commitf87aba6cf765c3ba3f6b4cc097c63b567966de85 (patch)
treeefbfd77f8c194c69fc71c076e89ff01e87d7d857 /tools/halt.py
parent053f218cc0076f58f53fd23515b3082328c6ce22 (diff)
Improve tests-start and tests-stop
Diffstat (limited to 'tools/halt.py')
-rwxr-xr-xtools/halt.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/halt.py b/tools/halt.py
new file mode 100755
index 0000000..cfbf14e
--- /dev/null
+++ b/tools/halt.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2014, NORDUnet A/S.
+# See LICENSE for licensing information.
+
+import argparse
+import subprocess
+import sys
+
+parser = argparse.ArgumentParser(description='')
+parser.add_argument('toerl')
+parser.add_argument('nodedir')
+args = parser.parse_args()
+
+p = subprocess.Popen(
+ [args.toerl, args.nodedir],
+ stdin=subprocess.PIPE)
+p.communicate("halt().\n")