[GRASS-user] How to run a bash script - GRASS6.4 Windows
Markus Neteler
neteler at osgeo.org
Mon Mar 25 06:00:19 PDT 2013
On Fri, Mar 22, 2013 at 6:14 PM, BLANDENIER Lucien
<lucien.blandenier at unine.ch> wrote:
> Hello,
>
> I'm new using grass and bash scripting and my question is quiet simple.
>
> I would like to know how I can run a bash script with the grass Command line (the black box!).
>
> the box display
> GRASS 6.4.2 <region>>
>
> But then, I don't how to explain to the shell where the script I want he run. Could someone give me some guidance ?
> This the path of my script : G:\3.Informatique-programmes\scripts_utilitaires\bash\grass
> And the name : import_ETo_month.sh
The easiest way should be, within the GRASS terminal window:
- change to the directory in which the script is stored:
cd G:\3.Informatique-programmes\scripts_utilitaires\bash\grass
- sh import_ETo_month.sh
Or, call the script with the full path.
Please note that shell script support is rather limited under Windows;
that's an important reason why all scripts were rewritten in Python
for GRASS 7.
Markus
More information about the grass-user
mailing list