title: syntax error near unexpected token `else' error
body: <pre><code>#!/usr/bin/bash
  . ~/.profile
  exec &amp;&gt; /export/home/oracle/scripts/Test_OHS_status.log
  /opt/app/oracle/Middleware/Oracle_WT1/instances/instance1/bin/opmnctl status
  chmod 777 /export/home/oracle/scripts/Test_OHS_status.log
  if [ -f /export/home/oracle/scripts/Test_OHS_status.log ] ; then
  cp /export/home/oracle/scripts/Test_OHS_status.log /home/sedward
  chmod 777 /home/sedward/Test_OHS_status.log
  grep "[Alive, Down]" /home/sedward/Test_OHS_status.log | mailx -s "Test - OHS Status" steven10@gmail.com &lt; /home/sedward/Test_OHS_status.log
  fi
  else
  echo "something wrong with Test OHS" | cat &gt;&gt; /home/sedward/Test_OHS_status.log | mailx -s "check if oracle HTTP server is up on Test" steven10@gmail.com &lt; /home/sedward/Test_OHS_status.log
  </code></pre>