Artifact bb90861904568a6cc48459ff26dc9c53672a738b:
- File utils/nbfind — part of check-in [5b804d31a0] at 2012-03-20 18:24:23 on branch trunk — Added template for load based launcher (user: mrwellan, size: 323) [annotate] [blame] [check-ins using]
#!/bin/bash -e load=`uptime|awk '{print $10}'|cut -d, -f1` numcpu=`cpucheck|tail -1|awk '{print $6}'` lperc=`echo "100 * $load / $numcpu"|bc` if [[ $lperc -lt 100 ]];then # echo "Load percent: $lperc < 100, using nbfake" nbfake $(*) else # echo "Load percent: $lperc > 100, using NBLAUNCHER" $NBLAUNCHER $(*) fi