Changeset 1336 for trunk


Ignore:
Timestamp:
Oct 8, 2009, 1:38:24 AM (13 years ago)
Author:
mitchb
Message:
Make for-each-server work on Suns
Look, I know nobody else *thinks* people use them, but they are
the dialups.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/locker/bin/for-each-server

    r1280 r1336  
    11#!/bin/sh
    2 for server in `finger @scripts.mit.edu | tail -n +5 | sed -n "s/  -> \([^:]*\):.*/\1/p" | sort -u`; do
     2
     3case `machtype` in
     4    linux)
     5        TAIL_ARG="-n"
     6        ;;
     7    *)
     8        TAIL_ARG=""
     9        ;;
     10esac
     11
     12for server in `finger @scripts.mit.edu | tail ${TAIL_ARG} +5 | sed -n "s/  -> \([^:]*\):.*/\1/p" | sort -u`; do
    313    ssh "$server" "$@"
    414done
Note: See TracChangeset for help on using the changeset viewer.