The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-28-2005
bryan bryan is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 22
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