Thanks again, very useful link!<div>Cheers</div><div>Pietro<br><br><div class="gmail_quote">2012/10/19 Matt Wilkie-2 [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5009798&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span><br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">

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

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://osgeo-org.1560.n6.nabble.com/How-to-log-Osgeo4W-shell-stdout-into-a-txt-file-tp5009568p5009715.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/How-to-log-Osgeo4W-shell-stdout-into-a-txt-file-tp5009568p5009715.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from How to log Osgeo4W shell stdout into a txt file?, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/How-to-log-Osgeo4W-shell-stdout-into-a-txt-file-tp5009568p5009798.html">Re: How to log Osgeo4W shell stdout into a txt file?</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/osgeo4w-dev-OSGeo-Win32-Installer-List-f3765018.html">osgeo4w-dev -- OSGeo Win32 Installer List mailing list archive</a> at Nabble.com.<br/>