<div dir="ltr"><div dir="ltr">I am trying to parallelize some scripts that currently run only one way .( Currently scripts just create a new temporary mapset and run some commands  using --exec option of grass78)</div><div>My understanding is that I should follow this, however I am unable to create a new mapset using this.</div><div><a href="https://grasswiki.osgeo.org/wiki/GRASS_and_Shell#Automated_batch_jobs:_Setting_the_GRASS_environmental_variables">https://grasswiki.osgeo.org/wiki/GRASS_and_Shell#Automated_batch_jobs:_Setting_the_GRASS_environmental_variables</a><br></div><div dir="ltr"><div><br></div><div>Here is what I have tried and failed<br></div><div>1)  grass78 executable cannot be run parallely from bash even  to just create the mapset</div><div>2) g.mapset -c</div><div>3) g.proj -c</div><div><br></div><div><br></div><div>If there is a different way to create a new mapset, please let me know (I am not sure if its as simple as copying some files from a template location...)</div><div><br></div><div><br></div><div><br></div><div>#current grass scripts....</div><div><div>#Step 1: Create a new location with permanent mapset</div><div>grass78 -c  /path/location/PERMANENT -e </div><div><br></div><div>#Step2: run some commands using--exec option</div><div>grass78--exec v.in.ogr input='$inputfile' output=$vecoutname location=path/location/PERMANENT</div></div></div></div>