[GRASS-user] Another script question
Glynn Clements
glynn at gclements.plus.com
Sat Aug 14 15:41:21 EDT 2010
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 at gclements.plus.com>
More information about the grass-user
mailing list