[GRASS-user] --exec interface not working with a script
Moritz Lennert
mlennert at club.worldonline.be
Mon Dec 5 14:00:18 PST 2016
Hi Vero !
Le 5 décembre 2016 21:35:04 GMT+01:00, Veronica Andreo <veroandreo at gmail.com> a écrit :
>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
>Cleaning up temporary files...
>Starting GRASS GIS...
>Executing <test.sh> ...
>ERROR: Execution of <test.sh> failed:
>[Errno 2] No such file or directory
>Exiting...
Try giving it the full path to test.sh.
Moritz
>
>test.sh looks like this:
>
>#!/bin/bash
>g.region -p
>g.list type=raster
>r.info elevation
>
>When I just run the commands with the --exec flag, they work fine. For
>example:
>
>grass73svn /home/veroandreo/grassdata/nc_spm_08_grass7/user1/ --exec
>g.region -p
>Cleaning up temporary files...
>Starting GRASS GIS...
>Executing <g.region -p> ...
>projection: 99 (Lambert Conformal Conic)
>zone: 0
>datum: nad83
>ellipsoid: a=6378137 es=0.006694380022900787
>north: 320000
>south: 10000
>west: 120000
>east: 935000
>nsres: 500
>ewres: 500
>rows: 620
>cols: 1630
>cells: 1010600
>Execution of <g.region -p> finished.
>Cleaning up temporary files...
>
>What am I missing? Do I need to add extra permissions to my grassdata
>folder? I find it strange since I've used the exec interface with
>scripts
>before without any issues.
>
>Thanks much in advance!
>
>Cheers,
>Vero
>
>ps: in case it matters, I use fedora24, grass trunk r69962M.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>grass-user mailing list
>grass-user at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/grass-user
More information about the grass-user
mailing list