[osgeo4w-dev] How to log Osgeo4W shell stdout into a txt file?

Pietro Rossin pierigis at gmail.com
Fri Oct 19 00:49:02 PDT 2012


Thanks again, very useful link!
Cheers
Pietro

2012/10/19 Matt Wilkie-2 [via OSGeo.org] <
ml-node+s1560n5009715h10 at n6.nabble.com>

> 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ä: [hidden email]<http://user/SendEmail.jtp?type=node&node=5009715&i=0>[mailto:
> osgeo4w-dev-
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=5009715&i=1>]
> Puolesta Pietro Rossin
> >> Lähetetty: 18. lokakuuta 2012 13:03
> >> Vastaanottaja: [hidden email]<http://user/SendEmail.jtp?type=node&node=5009715&i=2>
> >> 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
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=5009715&i=3>
> >> http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
> > _______________________________________________
> > osgeo4w-dev mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5009715&i=4>
> > http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
> > .
> >
>
> _______________________________________________
> osgeo4w-dev mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5009715&i=5>
> http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.n6.nabble.com/How-to-log-Osgeo4W-shell-stdout-into-a-txt-file-tp5009568p5009715.html
>  To unsubscribe from How to log Osgeo4W shell stdout into a txt file?, click
> here<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5009568&code=cGllcmlnaXNAZ21haWwuY29tfDUwMDk1Njh8MjMwODY1MTQ5>
> .
> NAML<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>
>




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-log-Osgeo4W-shell-stdout-into-a-txt-file-tp5009568p5009798.html
Sent from the osgeo4w-dev -- OSGeo Win32 Installer List mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20121019/2d006e02/attachment.html>


More information about the osgeo4w-dev mailing list