Commandline output to a file?
Posted: 2011-12-30T02:04:22-07:00
Hi,
I'm comparing some images and I want the result of the image comparison output'ed to a file. I'm using Windows. For example I'm running the command:
compare -metric PSNR crop_1.png crop_2.png dif_1_2.png
Which in the console prints out:
28.9463
Normally I would put a "> result.txt" after the command, so I'll get: compare -metric PSNR crop_101.png crop_102.png dif_101_102.png > result.txt
But the problem is when I'm running that the output still get's printed in the console, but nothing in the file. I also tried with >> result.txt.
However It's working if im just doing: ping www.google.com > ping.txt
I hope some of you can help me with this problem.
I'm comparing some images and I want the result of the image comparison output'ed to a file. I'm using Windows. For example I'm running the command:
compare -metric PSNR crop_1.png crop_2.png dif_1_2.png
Which in the console prints out:
28.9463
Normally I would put a "> result.txt" after the command, so I'll get: compare -metric PSNR crop_101.png crop_102.png dif_101_102.png > result.txt
But the problem is when I'm running that the output still get's printed in the console, but nothing in the file. I also tried with >> result.txt.
However It's working if im just doing: ping www.google.com > ping.txt
I hope some of you can help me with this problem.