Skip to content

Commit

Permalink
macs: add small wrapper to execute calls on all macs
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Dec 12, 2024
1 parent 5a8a3dc commit 9236b03
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions macs/mac-exec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

HOSTS=(
"[email protected]"
"[email protected]"
"[email protected]"
"[email protected]"
"[email protected]"
"[email protected]"
"[email protected]"
)

for host in "${HOSTS[@]}"; do
# shellcheck disable=SC2068
(ssh "${host}" -- $@ 2>&1| sed -e "s/^/${host} | /") &
done

0 comments on commit 9236b03

Please sign in to comment.