How about: exec > mylogfile.log 2>&1 On 04/03/2009, Nigel Thomas <nigel.cl.thomas@xxxxxxxxxxxxxx> wrote:
A simple way of achieving what you want is to use round brackets to group together all the commands you need to log: set -x ( ... some commands .. some more commands .. including sqlplus etc ) | tee mylogfile 2>&1
2009/2/28 A Joshi <ajoshi977@xxxxxxxxx>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.
-- //www.freelists.org/webpage/oracle-l