This is a hard concept for me, so I appreciate some guidance... I worked with a friend who is knowledgeable and it took an hour to figure out, so not easy for newbie like me. I'm posting my solution here in case someone else is searching the same problem...
It turns out you can save the commands in a .bat file and just type that file into the prompt in the OSGeo4W shell. ** The catch, is that apparently commands like otbcli_ComputeImagesStatistics are themselves batch calls, so if I put more than one of them in the same .bat file it would only execute the first one. The problem was solved by putting "call" on the line in front of the otbcli_* commands. So to sum up, make a file TEST.bat, with commands like: call otbcli_ComputeImagesStatistics -il QB_1_ortho.tif -out EstimateImageStatisticsQB1.xml call otbcli_ComputeImagesStatistics -il QB_2_ortho.tif -out EstimateImageStatisticsQB3.xml call otbcli_ComputeImagesStatistics -il QB_3_ortho.tif -out EstimateImageStatisticsQB3.xml and then type "Test.bat" at the prompt in the OSGeo4W shell. On Monday, December 15, 2014 11:32:32 PM UTC-5, Erika Mudrak wrote: > > I'm just learning Monteverdi2, and I realize I can run the same > Applications from the OSGeo4W Shell. For instance, I can either put all the > info in the pull down menu, or I can type in the shell: > > otbcli_ComputeImagesStatistics -il QB_1_ortho.tif -out > EstimateImageStatisticsQB1.xml > > If I want to do this in batches, say copy this over and change some small > things about it, and save it in a file, how can I execute all the commands > in the file from the shell? What command should I use? > > (I'm new to running stuff from command line too, if you couldn't tell). > > Thanks! > -- -- 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.
