title: How to stop console output
body: <p>I have a script and the output appears on the console and it should be only in the output file , this is the sql query header from the script :</p>
  
  <pre><code>sqlplus -s ${connString} &lt;&lt;EOF &amp;
  
  SET HEADING OFF FEEDBACK OFF ECHO OFF PAGESIZE 0
  SET LINESIZE 1024
  SET TRIMSPOOL ON
  WHENEVER SQLERROR EXIT FAILURE
  SPOOL $logdir/Report_$YYYYMMDD.txt
  </code></pre>
  
  <p>sql query </p>
  
  <pre><code>SPOOL OFF
  EOF
  </code></pre>