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. |
---|
3 | if [ $# != 2 ]; then |
---|
4 | echo "usage: $0 mnthost subdir" |
---|
5 | exit 1 |
---|
6 | fi |
---|
7 | if [ ! -r hosts ]; then |
---|
8 | echo "need hosts file in current dir" |
---|
9 | exit 1 |
---|
10 | fi |
---|
11 | MNT=$1; shift |
---|
12 | XDIR=$1; shift |
---|
13 | DIR=/$MNT/$XDIR |
---|
14 | for 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 |
---|
22 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.