I know this is not strictly on-topic, but:
If I'm running a large bash script, how do I get it to write errors in Grass-GIS processes to a logfile?
That way, if I run a script overnight and a Grass-GIS process fails, I at least know there's a problem!
Richard Chirgwin
Richard Chirgwin wrote:
I know this is not strictly on-topic, but:
If I'm running a large bash script, how do I get it to write errors in
Grass-GIS processes to a logfile?
That way, if I run a script overnight and a Grass-GIS process fails, I
at least know there's a problem!
If either of the files $HOME/GIS_ERROR_LOG or $GIS_ERROR_LOG exist,
errors and warnings (but not messages) from GRASS commands will be
written to that file.
Or you can just capture all output from any command (including a
script) by appending "&>logfile" to the command.
--
Glynn Clements <glynn@gclements.plus.com>