I am trying to run shell scripts with Orfeo-toolbox commands, and I'm new to all this.... (I'm working in Windows 7).
I can type
otbcli_ComputeImagesStatistics -il Imagery/P1_10cm1.tif Imagery/P2_10c1.tif -out ImageAnalysis/Stats12_JUNK3.xml
directly into the OSGeo4W shell window and things work fine. Now I'd like to put more commands in a script and run them all at once.
I'm following the advice from this question.
If I save that text in a file called
and enter in shell window:
I get the error
TryShell.sh: line 1: otbcli_ComputeImagesStatistics: command not found
Why does the
otbcli command work in the shell but not in the shell script?