diff options
author | Magnus Ahltorp <map@kth.se> | 2015-02-27 15:49:48 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-02-27 16:07:38 +0100 |
commit | 056b69cc4891c5ef1ba8da7e0a9369cb069a03e0 (patch) | |
tree | 454e83d2c548cf99827a1e968aea1beaa7ad0389 /tools/halt.py | |
parent | 43811a180ee2163ed2e21c305a9671b31cc37ef6 (diff) |
Improve tests-start and tests-stop
Diffstat (limited to 'tools/halt.py')
-rwxr-xr-x | tools/halt.py | 19 |
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") |