if [`grep -c 200 /etc/monitor/java/result` != 0 ]
then echo "Tomcat is up"
else echo "Tomcat is down"
syntax error: "unexpected end of file"
all what this does is grep the file for an occurance of 200 and echo the appropriate string.
using #sh -n script.sh
produces the same error.
any help would be great fellas