I was wondering how to do that. My way of doing it was to surround a block of code with a while loop and redirect the contents of the fake loop.
while (( 1 = 1 )) do code here break done > script.log 2>&1 cat script.log In regards to your actual question I think you have to explicity redirect standard error and output back to the terminal. I am sure someone will supply the exact syntax. - Ethan -----Original Message----- Sent: Tuesday, January 22, 2002 1:21 PM To: Multiple recipients of list ORACLE-L Here is a good one for you, I have been doing something in my korn shell scripts which I really never understood and now need to change. :-) I have the following line that sends the output from the shell script to a log file: exec > db_heartbeat.log 2>&1 At the bottom of my shell script I now want to stop sending the output to the log file and instead print the log file to the screen. Does anyone know how to turn of the exec line? Thanks, Tom Tom Terrian Oracle DBA WPAFB - DAASC [EMAIL PROTECTED] 937-656-3844 <<...OLE_Obj...>> -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Post, Ethan INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
