[GRASS-user] Another script question

Richard Chirgwin rchirgwin at ozemail.com.au
Mon Aug 16 16:47:52 EDT 2010


Glynn - many thanks!

Richard Chirgwin

Glynn Clements wrote:
> 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.
>
>   



More information about the grass-user mailing list