[GRASS-user] --exec interface not working with a script
Veronica Andreo
veroandreo at gmail.com
Mon Dec 5 12:35:04 PST 2016
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...
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20161205/d00fd15c/attachment.html>
More information about the grass-user
mailing list