How can I run FIO for windows and redirect output to file and console simultaneously
<p>I’m running FIO 2.1.8 (Windows 2012 R2) and I am trying to figure out how I can use a bat file with FIO and the <strong>–output=</strong> command, but also display the output to the console screen at the same time. </p>

<p>I want to be able to monitor the screen in real time but also need a log so I can parse for errors and metrics after the workload is done. The problem is it seems there is no way to do both.</p>

<p>If I include the output argument then all screen output is suppressed, and if I try to do any other type of redirection then the console never updates.</p>

<p>Does anyone know how to achieve this with FIO in Windows?</p>

<p>I've tried using</p>

<ul>
<li><p>TEE (via Gow) </p></li>
<li><p>Standard dos redirection   (eg &amp;>1 )</p></li>
<li><p>Wrapping the bat file in a powershell script using START-TRANSCRIPT</p></li>
</ul>

<p>In all cases this does not work.</p>

<pre><code>"C:\Program Files\fio\fio.exe" --name=warmup --readwrite=randrw --rwmixread=70 --bs=64k --ba=64k --filename=E\:\FIO_
datafile.dat --size=32m --ioengine=windowsaio  --runtime=900 --time_based --iodepth=4 --numjobs=32  --eta=always
</code></pre>

<p>Thanks...</p>