Hi,

What you could do is :
* either change the call to OTB application : replace the call to the bat file by "/c/OSGEO4~1/bin/otbApplicationLauncherCommandLine ConcatenateImages path_to_applications_so". You can also specify the path to applications so files through an environment variable.
* or copy the scripts from a linux package. On linux the "otbcli_ConcatenateImages.bat" becomes simply "otbcli_ConcatenateImages". You will also have to copy "otbcli", the equivalent of "otbcli.bat", but this script may have to be modified.

Regards,
Guillaume

On 11/17/2016 09:19 AM, [email protected] wrote:
Hello
I'm trying to run OTB applications with a bash script on a windows 10 box
The OTB applications are made available after Qgis installation with osgeo4w64

So to run my script a start a osgeo4w shell, then launch a bash, then launch my script
Everything is correct until i try to launch an OTB application (ConcatenateImages)

I got the error message:
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 1: @echo: command not found
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 2: ::: command not found
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 3: ::: command not found
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 4: ::: command not found
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 5: ::: command not found
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 9: syntax error near unexpected token `('
/c/OSGEO4~1/bin/otbcli_ConcatenateImages.bat: line 9: `if exist %CURRENT_SCRIPT_DIR%otbcli.bat ('

Actually the error message is the same if i launch otbcli_ConcatenateImages.bat inside the bash
If i leave it, i get the help message.

I guess this is because OTB commands  are bat file.

So my question is: do i need to convert my bash script in bat ?
If so, i must say that it could be very usefull to made otb applications compatibles with a osgeo4w bash shell, just for portability reasons.
Thus, developped scripts could be used in both environment 

Philippe

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
 
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--
Guillaume PASERO
Responsable technique
Business Unit E-SPACE & Geo Information - Département Image & Applications

CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
 
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to