summaryrefslogtreecommitdiff
path: root/bin/get-hosts-from-job
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2017-02-15 14:14:04 -0800
committerFranck Cuny <franck.cuny@gmail.com>2017-02-15 14:14:04 -0800
commita6400298d0b0e9c28cc0a3e34617a8f682eb633f (patch)
tree5c8946b4fdaa2c604d914d778282d061f7bddc0e /bin/get-hosts-from-job
parent[tmux] and once again, add it back .. (diff)
downloademacs.d-a6400298d0b0e9c28cc0a3e34617a8f682eb633f.tar.gz
[bin] Update a bunch of scripts.
Diffstat (limited to 'bin/get-hosts-from-job')
-rwxr-xr-xbin/get-hosts-from-job5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/get-hosts-from-job b/bin/get-hosts-from-job
new file mode 100755
index 0000000..6985bb6
--- /dev/null
+++ b/bin/get-hosts-from-job
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+JOB_NAME=$1
+
+aurora job status "${JOB_NAME}" |grep 'RUNNING on'|awk '{print $13}' | sort