Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there a way to log all the text output from commands in the Msys terminal to a text file when using OSGEO4W in Windows? I'm using GDAL commands and specifically wish to record any error messages that come up.

Any help much appreciated!

share|improve this question
    
Have you found a way to do this? I would like to do the following with ogr2ogr commands... –  James S Mar 6 '13 at 10:15
    
Unfortunately, this is still something I don't know how to do... –  JPD Mar 6 '13 at 17:10

1 Answer 1

This has helped me get this working:

http://stackoverflow.com/questions/876239/bash-redirect-and-append-both-stdout-and-stderr

Its called redirection. I have used

2>> filename.txt

to redirect the error messages to a text file.

I also found that using

--debug ON 

in my ogr calls helped to give more verbose messages in the log file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.