Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Andrea Peri
sorry the emaiil start before end the message I would thx for your help you and the other grass guys. A. 2015-08-26 18:03 GMT+02:00 Nick Jachowski njachow...@gmail.com: I've had this problem from cron before and a solution I've found is to print all the environment variables using the linux

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Andrea Peri
I found the solution with the printenv. My script was for bash-shell, but the crontab instead start a sh-shell. Thx for help you and other grass guys. A. 2015-08-26 22:09 GMT+02:00 Andrea Peri aperi2...@gmail.com: sorry the emaiil start before end the message I would thx for your help you

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Vaclav Petras
On Wed, Aug 26, 2015 at 4:12 PM, Andrea Peri aperi2...@gmail.com wrote: My script was for bash-shell, but the crontab instead start a sh-shell. Script should have a shebang and this should solve the interpreter problem for you, i.e. you can use any interpreter available as long as you specify

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Andrea Peri
Hi, thx for help Vaclav I was trying to run a shell script with a start of a grass and many grass command inside it. Not only a grass call. As reported few minutes ago, I resolve my issue . Printing the environment variables (using the printenv utility) I see that the crontab start a sh-shell,

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Vaclav Petras
I've seen your email about wrong shell but anyway: On Wed, Aug 26, 2015 at 10:47 AM, Andrea Peri aperi2...@gmail.com wrote: 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. What you

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Nick Jachowski
I've had this problem from cron before and a solution I've found is to print all the environment variables using the linux command printenv. Run printenv from your console and from the cron then compare the output and see what's different. Then when you find the critical differences set those

[GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Andrea Peri
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

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Blumentrath, Stefan
...@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

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Andrea Peri
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

Re: [GRASS-user] Run grass console from a cronjob

2015-08-26 Thread Hermann Peifer
On 2015-08-26 16:27, Andrea Peri wrote: Hi, I'm try to run a grass session from a cronjob The cron execut a bash script where I try to execute Do you know GRASS_BATCH_JOBs? They run fine, AFAICT. Hermann https://grasswiki.osgeo.org/wiki/GRASS_and_Shell#GRASS_Batch_jobs