Redirect console output into file

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Shorty
Posts: 3
Joined: Thu Mar 29, 2007 10:32 am

Redirect console output into file

Post by Shorty »

Hey folks...

I was just wondering why it's not possible to redirect the console output from the Windows CLI version into a textfile:

Code: Select all

MediaForkCLI -i "X:\Video_TS" -t 0 >Log.txt
After executing the command, MediaFork lists all the informations etc., but the Log.txt has the incredible size of 0 bytes...
Can anyone help me with this problem?

>Simon


P.S.
Please excuse my bad english, I'm still learning... ;)


EDIT: Could someone please move this topic to the Command Line Section? :oops:
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Post by rhester »

Output from the CLI is to stderr, not stdout. Try 2>Log.txt.

Rodney
Shorty
Posts: 3
Joined: Thu Mar 29, 2007 10:32 am

Post by Shorty »

Thanks a lot!
Um... is there any reason why the developers used "err" instead of "out"?

>Simon
Post Reply