On 28/03/06, Kingsly John <[EMAIL PROTECTED]> wrote: > while sleep 60 ; do LOAD=`cat /proc/loadavg |cut -f1 -d.`; if [ "$LOAD" -gt > "10" ] ; then /path/to/script.sh; fi; done
And of course, its "no additional processes spawned, entirely made up of shell builtins" version: while read -t 60; do set -- $( < /proc/loadavg ); if [ $1 -gt 10 ]; then /path/to/script.sh; fi; done Binand ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ linux-india-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-india-help
