to flesh Jukka's suggestion out a little:
/command/ *>* /filename/ Redirect/command/ output to a file
/command/ *2>* /filename/ Redirect any error message into a file
/command/ *>* /file/A*2>* /fileB/ Redirect output and errors to
separate files
Cribbed from http://ss64.com/nt/syntax-redirection.html which has a lot
of other combinations and tricks.
cheers,
matt wilkie
--------------------------------------------
Geomatics Analyst
Information Management and Technology
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------
On 18-Oct-2012 3:08 AM, Rahkonen Jukka wrote:
Hi,
If you are on Windows I guess it would be done by redirecting "2" into a file.
ogr2ogr [......] 2>your_log_file.txt
Use >> for appending to an existing file or otherwise is will be overwritten.
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: [email protected] [mailto:osgeo4w-dev-
[email protected]] Puolesta Pietro Rossin
Lähetetty: 18. lokakuuta 2012 13:03
Vastaanottaja: [email protected]
Aihe: [osgeo4w-dev] How to log Osgeo4W shell stdout into a txt file?
Hi
I'm facing a problem with osgeo4win shell command execution.
During command execution i get errors that I'll like to log into a readable
(text) file.
Is there the possibility to log the stdout of the shell?
Which swith/command to use?
Thanks
Pietro
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-
to-log-Osgeo4W-shell-stdout-into-a-txt-file-tp5009568.html
Sent from the osgeo4w-dev -- OSGeo Win32 Installer List mailing list archive
at Nabble.com.
_______________________________________________
osgeo4w-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
_______________________________________________
osgeo4w-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
.
_______________________________________________
osgeo4w-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev