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: Unix tee command

RE: Unix tee command

From: Vergara, Michael (TEM) <mvergara_at_guidant.com>
Date: Wed, 11 Jul 2001 08:38:28 -0700
Message-ID: <F001.00347298.20010711075158@fatcity.com>

Erik:

This is from the HP-UX man page for tee:

 DESCRIPTION

      The tee command transcribes the standard input to the standard output
      and makes copies in the files.

What this means in relative English is that the output is recorded to a file
(as in script_file > log_file) but you see it on the screen (as in
script_file, which normally comes to STDOUT). We use this for automated process run by BMC's Enterprise Control System, where I want a log file on my machine, and the ECS wants a copy for it's sysout log.

HTH,
Mike

---
===========================================================================
Michael P. Vergara              | I've got a PBS mind in an MTV world
Oracle DBA                      |
Guidant Corporation             |


-----Original Message-----
Sent: Wednesday, July 11, 2001 7:12 AM
To: Multiple recipients of list ORACLE-L


I do not understand the difference between these two commands:

        script_file > log_file
        script_file | tee log_file

As I understand, the first runs and redirects its standard output to a log
file. The second runs and pipes its standard output to the tee command,
which copies its standard input into its standard output. I have been
instructed to use the latter, but dont want to do it blindly without
understanding why.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Vergara, Michael (TEM)
  INET: mvergara_at_guidant.com

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 Wed Jul 11 2001 - 10:38:28 CDT

Original text of this message

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