Sorry abt the delay. Ygor, gotta do this with df cmd only .. I will use bdf later....
Chacalinc, I verified.. it gives a float result. Now, I think LOW_WATER_MARK can't be defined as "integer". I tried "float" but it gives an error.
PHV, set -x at the beginning of the CHK_FILE_SPC function gives
+ date +%m%d
+ export DATE=0331
+ export TMP=/tmp/.chkfilspc.0331
+ export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:
+ hostname
+ export HOSTNAME=fddsms
+ export PROGRAM=temp.sh
+ export PAGE=/usr/local/bin/sendpage -n
+ export DF=df -k
+ set -x
+ CHK_FILE_SPC / 10 %
+ export FILESYS=/
+ [ % = % ]
+ df -k /
+ tail -1
+ awk -v PERCENT=10 {print $2*PERCENT/100/1024}
+ export AMOUNT=0
+ typeset -i FREE_SPACE LOW_WATER_MARK
+ + df -k /
+ tail -1
+ awk {print $3}
temp.sh[15]: allocation: The specified number is not valid for this command.
Line 15 is: export HOSTNAME=`hostname`