Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1682CDE97 for ; Mon, 24 Dec 2012 03:21:22 +0000 (UTC) Received: (qmail 49955 invoked by uid 500); 24 Dec 2012 03:21:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49632 invoked by uid 500); 24 Dec 2012 03:21:14 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 49580 invoked by uid 99); 24 Dec 2012 03:21:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2012 03:21:12 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dag.wanvik@oracle.com designates 141.146.126.69 as permitted sender) Received: from [141.146.126.69] (HELO aserp1040.oracle.com) (141.146.126.69) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2012 03:21:03 +0000 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBO3KfVY012197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 24 Dec 2012 03:20:42 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBO3Kerp017840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 24 Dec 2012 03:20:41 GMT Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBO3KeNe009912 for ; Sun, 23 Dec 2012 21:20:40 -0600 Received: from [192.168.100.4] (/1.128.29.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 23 Dec 2012 19:20:40 -0800 Message-ID: <50D7CA06.2090204@oracle.com> Date: Mon, 24 Dec 2012 13:20:38 +1000 From: Dag Wanvik Organization: Oracle Corporation User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Exit value of ij tool on command prompr References: <1355822174819-125897.post@n7.nabble.com> In-Reply-To: <1355822174819-125897.post@n7.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-Virus-Checked: Checked by ClamAV on apache.org On 18.12.2012 19:16, aniderbian wrote: > Hello, > I am running a windows batch script in which I have a need to fire below > command > *java -jar ..\db-derby-10.9.1.0-lib\lib\derbyrun.jar ij sql_file.txt *. > > Now after firing above command I want to check return exit status to > capture the success/failure of it . > > Or if there is any alternative way to achieve this please suggest. > > Thanks As far as I know, there is no such feature, the exit code is that of the Java VM exiting, so it would normally be 0. You probably want to know the success or failure of individual SQL statements in the script. Presently there is no feature to easily capturing those and relaying the results back to the OS invocation level of ij. IJ scripting is very basic. If you need such status codes, you'd probably be better off writing a small JDBC application. Thanks, Dag > > -- > View this message in context: http://apache-database.10148.n7.nabble.com/Exit-value-of-ij-tool-on-command-prompr-tp125897.html > Sent from the Apache Derby Developers mailing list archive at Nabble.com.