I'm calling an embedded sql from my shell script file. This sql does simple task of spooling out the contents of the table (see below my sample code) into a spool file that I specify. So far so good, but the problem is that the output is also displayed on screen which I do NOT want.
How can I suppress the output from being displayed on screen while ensuring it still goes to the spool file.
...
...
sqlplus -s ${ORA_CONN_STR} <<EOF
SET TERMOUT OFF
SET HEADING OFF
SET PAGESIZE 50000
SET LINESIZE 500
SET TRIMSPOOL OFF
SET WRAP OFF
SET FEEDBACK OFF
SET ECHO OFF
SPOOL ${CSV_DIR_FILE}
SELECT 'My header text here'
FROM dual;
SELECT TRIM (field1) || ',' ||
TRIM (field1) || ',' ||
TRIM (field2) || ',' ||
TRIM (field3) || ',' ||
TRIM (field4)
....
FROM <tablename>;
EOF
...
...