[GRASS-user] --exec interface not working with a script

Moritz Lennert mlennert at club.worldonline.be
Mon Dec 5 23:33:14 PST 2016


On 05/12/16 23:06, Markus Neteler wrote:
> On Mon, Dec 5, 2016 at 9:35 PM, Veronica Andreo <veroandreo at gmail.com> wrote:
>> Hello list,
>>
>> This is maybe a very silly question, but I do not know what I am missing.
>> I'm trying to run a script using the --exec interface but using the
>> following command, I get:
>>
>> grass73svn /home/veroandreo/grassdata/nc_spm_08_grass7/user1/ --exec test.sh
>
> Like this the "test.sh" must be in the current path.
> So:
> - either give the full path (as Moritz wrote)
> - or call it like this: .... --exec sh test.sh

And just to make sure: If you use the full path (or ./test.sh), test.sh 
has to have the executable bit set, i.e. chmod +x test.sh.

Moritz


More information about the grass-user mailing list