From 69781e70e9ebd4ddae707a6e3d85e7169e361b3b Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Thu, 19 Feb 2015 17:38:56 -0800 Subject: [PATCH] Add reboot script --- acatcher/reboot_streamers.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 acatcher/reboot_streamers.sh diff --git a/acatcher/reboot_streamers.sh b/acatcher/reboot_streamers.sh new file mode 100755 index 0000000..a2dee5f --- /dev/null +++ b/acatcher/reboot_streamers.sh @@ -0,0 +1,10 @@ +#!/bin/bash +if [ ! -f "$1" ]; then + echo "error: must specify rooms file" + exit 1 +fi +NUM=0 +for HOST in `cat "$1"`; do + >&2 echo stopping host $HOST + ssh pi@$HOST "sudo reboot" +done