##################################################### # run4all - executes any program/script specified on # the commandline in every active environment # J. David Schronce - Mon Jun 11 16:15:03 CDT 2007 ##################################################### ##################################################### # # Verify that we have a program to run # ##################################################### if [ $# = 0 ]; then echo "\nUSAGE $0 \n" exit fi command="$1 $2 $3 $4 $5 $6 $7 $8 $9" ##################################################### # # Check that we have a basic environment setup # ##################################################### ENVCNT=0 for LAENV in `lstver | sort -n`; do . cv $LAENV > /dev/null 2>&1 ##################################################### # # Verify the Env exists # ##################################################### if [ -f $GENDIR/bin/rngdbdump ]; then echo $LAENV eval "$command" fi done