RE: ** UNIX : set echo on in shell
Date: Sun, 1 Mar 2009 21:47:12 -0600
Message-ID: <7ED53A68952D3B4C9540B4EFA5C76E3605E7A863_at_CWYMSX04.Corp.Acxiom.net>
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. | www.acxiom.com
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of A Joshi Sent: Saturday, February 28, 2009 2:46 PM To: oracle-l_at_freelists.org
Subject: ** UNIX : set echo on in shell
Hi,
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. Thanks
The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged.
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.
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Mar 01 2009 - 21:47:12 CST