Changeset 1782
- Timestamp:
- Feb 18, 2011, 5:48:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/locker-dev/locker/bin/for-each-server
r1415 r1782 1 1 #!/bin/sh 2 2 3 case `machtype` in 4 linux|darwin) 5 TAIL_ARG="-n" 6 ;; 7 *) 8 TAIL_ARG="" 9 ;; 10 esac 11 12 for server in `finger @scripts.mit.edu | tail ${TAIL_ARG} +5 | sed -n "s/ -> \([^:]*\):.*/\1/p" | sort -u`; do 3 for server in `finger @scripts.mit.edu | sed -n -e "1,5d" -e "s/ -> \([^:]*\):.*/\1/p" | sort -u`; do 13 4 ssh "$server" "$@" 14 5 done
Note: See TracChangeset
for help on using the changeset viewer.