Guest Ronald Fischer Posted July 27, 2007 Posted July 27, 2007 How can I redirect stdout and stderr to the same file from a Windows command line? I know how to redirect them to different files: myprog >stdout.log 2>stderr.log but I need them in the same file. Under bash, I would do a myprog 2>&1 >myprog.log Ronald -- Ronald Fischer <ronaldf@eml.cc> Posted via http://www.newsoffice.de/
Guest Pegasus \(MVP\) Posted July 27, 2007 Posted July 27, 2007 Re: redirect stdout and stderr from Windows shell "Ronald Fischer" <ronaldf@eml.cc> wrote in message news:1185532281.78@user.newsoffice.de... > How can I redirect stdout and stderr to the same file from a Windows > command line? > > I know how to redirect them to different files: > > myprog >stdout.log 2>stderr.log > > but I need them in the same file. > > Under bash, I would do a > > myprog 2>&1 >myprog.log > > Ronald > > > -- > Ronald Fischer <ronaldf@eml.cc> > Posted via http://www.newsoffice.de/ > Much the same under Windows: myprog 1>stdout.log 2>&1
Recommended Posts