From oracle-l-bounce@freelists.org  Mon Jun  6 15:37:36 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j56KbaXb015231
 for <oracle-l@orafaq.com>; Mon, 6 Jun 2005 15:37:36 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j56KbZNi015217
 for <oracle-l@orafaq.com>; Mon, 6 Jun 2005 15:37:35 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 30D881BBDCF;
 Mon,  6 Jun 2005 14:31:13 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 11051-04; Mon, 6 Jun 2005 14:31:13 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AF81F1BBF77;
 Mon,  6 Jun 2005 14:31:12 -0500 (EST)
From: "Eric Buddelmeijer" <Eric.Buddelmeijer@elegant.nl>
To: <Ethan.Post@ps.net>, <oracle-l@freelists.org>
Subject: RE: Spool To More than 1 File
Date: Mon, 6 Jun 2005 21:29:11 +0200
Message-ID: <EMENJINPLCPACJBIAEFBKEEDCJAA.Eric.Buddelmeijer@elegant.nl>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
In-reply-to: <E5D2567DDF0D03428A15664A78CA473C90A33F@pscdalpexch02.perotsystems.net>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-archive-position: 20710
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: Eric.Buddelmeijer@elegant.nl
Precedence: normal
Reply-To: Eric.Buddelmeijer@elegant.nl
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=0.2 required=5.0 tests=AWL autolearn=ham version=2.63

If you are using some sort of *nix, I just succeeded in getting two files on
cygwin using tee:

cat <file_name> |tee out 1>out2

tee writes to the standard output (aka device 1) and to a file, in this case
out. Redirect 1 to another file and you have split it all. I bet you can
'nest' it further using pipe and tee again. As long as you can spawn
processes.

Kind regards,
Eric.

-----Oorspronkelijk bericht-----
Van: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org]Namens Post, Ethan
Verzonden: maandag 6 juni 2005 18:46
Aan: oracle-l@freelists.org
Onderwerp: Spool To More than 1 File


One thing I would like to see is the ability to spool output from
SQL*Plus to more than one file at a time. I am writing a script in which
I am spooling the results of each command to "foo" and then grepping the
foo file for the elapsed time and putting it in a log file using "!grep
...". The problem with this method is that I can't spool the results of
the entire script to another file in the event I want to see the detail.
I could use some "cat" commands to keep moving the results but this
seems like a pretty easy and perhaps usefull feature.
--
http://www.freelists.org/webpage/oracle-l

--
http://www.freelists.org/webpage/oracle-l

