[FWTools] Unable to redirect output?

Andy Harfoot ajph at geodata.soton.ac.uk
Thu Jun 30 07:46:48 EDT 2005

Hi there,

I'm trying to use the ogrinfo utility to return layer information from 
an OS Mastermap GML file, using a command like the following:

ogrinfo -q ogr_ready.gml

This returns a list of layers to the command prompt as expected. If I 
try to redirect the output to a text file (using > 1> or >>) the file is 
created, but remains empty:

ogrinfo -q ogr_ready.gml 1>ogrinfo_out.txt

Redirecting the output of a plain ogrinfo command works though:

ogrinfo 1>ogrinfo_out.txt

Can anyone suggest a workaround or solution for this?
I'm using the ogr utilities from the FWTools 0.9.8 win32 package under 
Windows XP.



More information about the FWTools mailing list