2012-02-03 10:46:17 +01:00
|
|
|
#!/usr/bin/ksh
|
|
|
|
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin:/sbin
|
2012-02-06 13:36:57 +01:00
|
|
|
typeset -lui count=${1:-4000}
|
2012-02-03 10:46:17 +01:00
|
|
|
typeset -ilu err=0
|
|
|
|
|
|
|
|
trap 'echo "[${0##*/}: error count at $err]"' ERR
|
|
|
|
|
|
|
|
while ((count-- > 0))
|
|
|
|
do
|
|
|
|
ulimit -s || let err++
|
|
|
|
ulimit -n || let err++
|
|
|
|
ulimit -q || let err++
|
|
|
|
done > /dev/null
|
|
|
|
|
|
|
|
echo "[${0##*/}: error count at $err]"
|
|
|
|
((err == 0)) || exit 1
|