commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maven apache <apachemav...@gmail.com>
Subject Re: some basic defination in common exec
Date Fri, 05 Mar 2010 02:40:33 GMT
2010/3/5 Siegfried Goeschl <siegfried.goeschl@it20one.at>

> 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);
>
Here, the /home/kk/4.tif can not connected with the former parameter, there
should be a space between them
However , this snippet still does not work.

>
> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message