Commit 52b5482d authored by Dr. Frank Lee's avatar Dr. Frank Lee
Browse files

bb-fix should do the same as bb-do

parent 165b5a56
Showing with 0 additions and 14 deletions
+0 -14
#!/bin/bash
# fixes problems reported in hobbit
TEST=$1
COLOR=$2
PATTERN=$3
CMD=$4
HOSTS=`tempfile`
bb-grep "$TEST" "$COLOR" "$PATTERN" >$HOSTS
# dsh doesn't seem to work. Meh
#dsh -o "-l root" -f $HOSTS "$CMD"
for H in `cat $HOSTS` ; do
echo +++ Running on $H
ssh -l root $H "$CMD"
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment