Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: exec shell command

RE: exec shell command

From: Terrian, Tom <tterrian_at_daas.dla.mil>
Date: Tue, 22 Jan 2002 12:16:33 -0800
Message-ID: <F001.003F7AAE.20020122120808@fatcity.com>

So far I have tried all of the following to stop sending standard output to the log file and start sending it back to the screen:

exec > db_heartbeat.log 2>&-
db_heartbeat.log >&-
2>&-
exec > db_heartbeat.log >&-
>&-
exec 2>&1
exec 2>&-

None of them worked.

Tom

Tom Terrian
Oracle DBA
WPAFB - DAASC
tterrian_at_daas.dla.mil
937-656-3844  

-----Original Message-----
[mailto:Scott.Shafer_at_dcpds.cpms.osd.mil] Sent: Tuesday, January 22, 2002 2:51 PM
To: Terrian, Tom

exec 2>&1

**I think**

Scott Shafer
San Antonio, TX
210-581-6217

"Common sense will not accomplish great things. Simply become insane and desperate."

> -----Original Message-----
> From: Terrian, Tom [SMTP:tterrian_at_daas.dla.mil]
> Sent: Tuesday, January 22, 2002 1:21 PM
> To: Multiple recipients of list ORACLE-L
> Subject: exec shell command
>
> 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
> tterrian_at_daas.dla.mil
> 937-656-3844
> <<...OLE_Obj...>>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Terrian, Tom
> INET: tterrian_at_daas.dla.mil
>
> 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: ListGuru_at_fatcity.com (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Terrian, Tom
  INET: tterrian_at_daas.dla.mil

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: ListGuru_at_fatcity.com (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).
Received on Tue Jan 22 2002 - 14:16:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US