RE: ** UNIX : set echo on in shell

  • From: "Herring Dave - dherri" <Dave.Herring@xxxxxxxxxx>
  • To: <ajoshi977@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Sun, 1 Mar 2009 21:47:12 -0600

Another option is simply "ksh -x sqlplus ... 1>$OUTFIL 2>&1".

David C. Herring  | DBA, Acxiom Automotive

630-944-4762 office | 630-430-5988 cell | 630-944-4989 fax
1501 Opus Pl | Downers Grove, IL, 60515 | U.S.A. |

From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of A Joshi
Sent: Saturday, February 28, 2009 2:46 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: ** UNIX : set echo on in shell

   I am looking for a shell equivalent of  set echo on. set -x works and gives 
the output on the screen. I am looking for a way so that it also goes to the 
LOGIFLE. So I can get the command being executed in the log. For example  if I 
have  :
set -x 
sqlplus .... > $OUTFIL 
set +x

Then I want the output to go to log file. It displays on the screen but does 
not go to log. From the log it is difficult to know which sqlplus had the 
error. I tried to put a echo before the sqlplus to know it but i have to update 
it each time so looking for a better way. Zoran and Frank helped out dba 
village and I have made progress to this point. Could not find much on net. 

The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.


Other related posts: