4 ## Parse the command line.
7 echo >&2 "Usage: $0 COMMAND SLAVE|:SET ..."
13 ## Expand slaves into a big list.
14 slaves
=$
(expand-list
/etc
/slaves
"$@")
18 { { { echo "starting..."
19 set +e
; ssh "$i" "$command" 3>&-; rc
=$?
; set -e
20 echo "done (rc = $rc)"; } >&3; } 2>&1 |
21 while IFS
= read -r line
; do printf "!!! %s\n" "$line"; done; } 3>&1 |
22 while IFS
= read -r line
; do printf "%s: %s\n" "$i" "$line"; done &