User Tools

Site Tools


wiki:grassbatchjobs

GRASS Batch jobs

Create a simple grass script in a text editor and run it directly on the shell.

Open a text editor and write

kate ~/ost4sem/grassdb/europe/PCEM/my_grassjob.sh  &
g.mapset -l

Save it
Run it directly on the shell giving the executable permission to the my_grassjob.sh.

chmod u+x ~/ost4sem/grassdb/europe/PCEM/my_grassjob.sh
export GRASS_BATCH_JOB=~/ost4sem/grassdb/europe/PCEM/my_grassjob.sh
grass -text ~/ost4sem/grassdb/europe/PCEM

To deactivate the batch job mode, run:

unset GRASS_BATCH_JOB
wiki/grassbatchjobs.txt · Last modified: 2017/12/05 22:53 (external edit)