Hi, thx for reply.

I guess yes.
I have some relative path, but my first
line in bash is a

" cd /home/--path-to-grass-position "

to set the script in the right position in filesystem.

Also in the script I set these env vars.

  export HOME=/home/path-to-home
  export USER=the_user
  export GROUP=the_group

to the right user and group for grass

A.


2015-08-26 16:38 GMT+02:00 Blumentrath, Stefan <stefan.blumentr...@nina.no>:
> Hi,
>
> Did you provide full paths?
> E.g. "~/my.tif" would not work for cronjobs, you would have to use 
> "/home/user/my.tif" instead.
>
> Not sure if also the path to the command to execute has to be complete (e.g. 
> /bin/grass70 ...)...
>
> Cheers
> Stefan
>
>
> -----Original Message-----
> From: grass-user-boun...@lists.osgeo.org 
> [mailto:grass-user-boun...@lists.osgeo.org] On Behalf Of Andrea Peri
> Sent: 26. august 2015 16:27
> To: GRASS user list <grass-user@lists.osgeo.org>
> Subject: [GRASS-user] Run grass console from a cronjob
>
> Hi,
>
> I'm try to run a grass session from a cronjob The cron execut a bash script 
> where I try to execute
>
> grass70 -text -c /path-to-geotiff/file.tif -e /grassdata/mapset_location
>
> If I try the bash script from a console it run good and without any problem.
> Bu if I try to execute the script from a crontab.
> It stop to execute when try to do:
>
> grass70 -text -c /path-to-geotiff/file.tif -e /grassdata/mapset_location
>
> Is the grass suitable for a cronjob ?
>
> Thx,
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to