|
Last change
on this file since 1364 was
1336,
checked in by mitchb, 16 years ago
|
|
Make for-each-server work on Suns
Look, I know nobody else *thinks* people use them, but they are
the dialups.
|
-
Property svn:executable set to
*
|
|
File size:
244 bytes
|
| Rev | Line | |
|---|
| [1280] | 1 | #!/bin/sh |
|---|
| [1336] | 2 | |
|---|
| 3 | case `machtype` in |
|---|
| 4 | linux) |
|---|
| 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 |
|---|
| [1280] | 13 | ssh "$server" "$@" |
|---|
| 14 | done |
|---|
Note: See
TracBrowser
for help on using the repository browser.