|
disk space script debug - posted before
I saw the following script in an earier post in this forum. Changed a little bit and trying it in my env but getting errors. Pls help in debuggin this.
(1)
#!/bin/ksh
DFR='df -g filesystempath|grep filesystem|awk '{print $4}''
echo $DFR
-----------------------
scriptname[3]: }: not found.
(2)
#!/bin/ksh
DFR='df -g filesystempath|grep filesystem|awk '{print $4}''
if [ DFR[2]>=90 ] then echo "True" else echo "False" fi
#checking if its greater than 90%
------------------------------
script:}: not found.
script: 0403-057 Syntax error at line 5 : `if' is not matched.
Thanks
|