source: trunk/third/cns/etc/hostloop @ 8789

Revision 8789, 484 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8788, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# script to run all builds in serial.
3if [ $# != 2 ]; then
4        echo "usage: $0 mnthost subdir"
5        exit 1
6fi
7if [ ! -r hosts ]; then
8        echo "need hosts file in current dir"
9        exit 1
10fi
11MNT=$1; shift
12XDIR=$1; shift
13DIR=/$MNT/$XDIR
14for i in `cat hosts`; do
15        if `df $DIR | awk -e /$MNT/' { if ( $4 < 20000 ) { print "true"; } else { print "false"; } }'` ; then
16                echo "OUT OF SPACE: "
17                df $DIR
18                exit 2
19        fi
20        echo $i
21        rsh $i -n "sh $DIR/kerberos/etc/dohost $DIR" 2>&1 > $i-runlog
22done
Note: See TracBrowser for help on using the repository browser.