Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 36498 invoked from network); 4 Mar 2010 18:04:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 18:04:26 -0000 Received: (qmail 45599 invoked by uid 500); 4 Mar 2010 18:04:14 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 45504 invoked by uid 500); 4 Mar 2010 18:04:14 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 45496 invoked by uid 99); 4 Mar 2010 18:04:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 18:04:14 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [78.142.186.51] (HELO smtp-07.sil.at) (78.142.186.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 18:04:05 +0000 Received: from [78.142.175.178] (helo=darkstar.local) by smtp-07.sil.at with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1NnFOi-0007M3-Mx for user@commons.apache.org; Thu, 04 Mar 2010 19:03:44 +0100 Message-ID: <4B8FF600.4020709@it20one.at> Date: Thu, 04 Mar 2010 19:03:44 +0100 From: Siegfried Goeschl Reply-To: siegfried.goeschl@it20one.at Organization: IT20one User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 MIME-Version: 1.0 To: Commons Users List Subject: Re: some basic defination in common exec References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 2d8460fb2b1c7551d7292176eb2b7221 X-Virus-Checked: Checked by ClamAV on apache.org I added a similar test to the code base - can you double-check the following snippet? Cheers, Siegfried Goeschl === START OF SNIPPET === CommandLine cl = new CommandLine(gdal_translate); cl.addArgument("HDF5:\"/home/kk/grass/data/4404.he5\"://HDFEOS/GRID/OMI_Column_Amount_O3/Data_Fields/ColumnAmountO3/home/kk/4.tif", false); DefaultExecutor executor = new DefaultExecutor(); int exitValue = executor.execute(cl); === END OF SNIPPET === On 04.03.10 10:52, maven apache wrote: > HI: > I want to use common-exec,however I am confusing with some definations - > which is the arguments in a cmd to be executed: > for example, the cmd I want to execute is : > > *gdal_tran HDF:"d:\data\hdf5\new\m0729_**v003-127.he5"://HDFEOS/GRIDS/** > Amount_O3/Data_Fields/**SolarZenithAngle d:\aa.tif -a_ullr -180 90 180 -90* > > The gdal_tran is the command name, all of the later are the parameters > required, > > *HDF:"d:\data\hdf5\new\m0729_**v003-127.he5"://HDFEOS/GRIDS/** > Amount_O3/Data_Fields/**SolarZenithAngle*--> is the organial data > *d:\aa.tif* ---> the target file > *-a_ullr -180 90 180 -90*------> the option parameters > > > So I want to know which parameter can be added using the > commandLine.addArgument() method? > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org