source:
branches/fc13-dev/locker/bin/for-each-server
@
2450
Last change on this file since 2450 was 1375, checked in by quentin, 15 years ago | |
---|---|
|
|
File size: 251 bytes |
Line | |
---|---|
1 | #!/bin/sh |
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 |
13 | ssh "$server" "$@" |
14 | done |
Note: See TracBrowser
for help on using the repository browser.