Musepack Forums  

Go Back   Musepack Forums > Main > General

Reply
 
Thread Tools Search this Thread Display Modes
Old 16 March 2009, 12:20 am   #1
BigBertrand
Member
 
Join Date: Mar 2009
Posts: 7
Default batch mass-verify

Hi,

I'd like to mass-verify my MPC library, so I tried a batch like this:
Quote:
FOR /r %a IN (*.mpc) DO mpcdec -c "%a" >> C:\log.txt
I had in mind to then search for "error occured" in the resulting log file; however, it doesn't work because the output is still written on screen, not in log

Doesn't anybody have an idea? thank you

edit: I really can't find out a solution; since mpcdec is said to write to stdout, the output should be redirected to the log file...

Last edited by BigBertrand; 16 March 2009 at 04:25 pm.
BigBertrand is offline   Reply With Quote
Old 17 March 2009, 12:35 am   #2
Antonski
Veteran Member
 
Join Date: Jun 2007
Location: Bulgaria
Posts: 102
Send a message via ICQ to Antonski Send a message via Yahoo to Antonski
Default

Hmmm, there is something strange, it seems that mpcdec writes to stderr instead of stdout? I've succeeded to redirect the output to a file using
Code:
>mpcdec.exe test.mpc >> test.log 2>&1
Of course, this is possible because I have installed UnixUtils in my %PATH%.
I'm affraid with pure windows command prompt this would be impossible.
~~
Antonski is offline   Reply With Quote
Old 17 March 2009, 06:34 pm   #3
BigBertrand
Member
 
Join Date: Mar 2009
Posts: 7
Default

thank you Antonski, redirecting both stdout and stderr this way works (no need of GNU tool at all)

future versions of mpcdec might want to correct this behaviour
BigBertrand is offline   Reply With Quote
Old 23 May 2009, 10:33 pm   #4
tzot
Member
 
Join Date: Aug 2005
Posts: 3
Send a message via ICQ to tzot
Default

Quote:
Originally Posted by BigBertrand View Post
future versions of mpcdec might want to correct this behaviour
future versions of windows might want to justify more their POSIX compatibility by documenting the streams and their redirection. mpcdec correctly sends output to stdout and diagnostics to stderr.
__________________
--
Just an earthbound misfit, I.

Last edited by tzot; 23 May 2009 at 10:53 pm.
tzot is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:18 pm.


Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2018, vBulletin Solutions Inc.