Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 81039 invoked from network); 16 Nov 2005 21:52:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Nov 2005 21:52:29 -0000 Received: (qmail 17441 invoked by uid 500); 16 Nov 2005 21:52:28 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 17418 invoked by uid 500); 16 Nov 2005 21:52:28 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 17407 invoked by uid 99); 16 Nov 2005 21:52:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2005 13:52:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jta@bristowhill.com designates 66.75.162.134 as permitted sender) Received: from [66.75.162.134] (HELO ms-smtp-02-eri0.socal.rr.com) (66.75.162.134) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2005 13:54:01 -0800 Received: from [192.168.15.53] (cpe-204-210-23-212.san.res.rr.com [204.210.23.212]) by ms-smtp-02-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id jAGLq4Dp022122 for ; Wed, 16 Nov 2005 13:52:04 -0800 (PST) Message-ID: <437BAA03.2020709@bristowhill.com> Date: Wed, 16 Nov 2005 13:52:03 -0800 From: "Jean T. Anderson" Reply-To: jta@bristowhill.com User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Re: ij stdout and stderr References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Xavier Vigouroux wrote: > Hi, > > I am using ij in a script. In some case the script is not executed > correctly (transient PriviledgeException). I would like at least warn > user about the problem. > but, as far as i see, ERROR are printed on stderr instead of stdout. > > Do i need to make a grep "ERROR" or is there another solution? > > thanks > When I run scripts on UNIX I typically run them like this to capture stderr in the output logfile: c shell: my_script_file >& file.log bourne shell: my_script_file > file.log 2>&1 does this help? -jean