title: C - scanf value directly from terminal
body: <p>I have a c process that waits for a <code>scanf()</code> input.</p>
  
  <p>I want to save its results to a <code>*.txt</code> file.
  To terminal (linux)</p>
  
  <pre><code>./process &gt; out.txt
  </code></pre>
  
  <p>What's the way to write in terminal the scanf prehand?</p>
  
  <p>Thanks.</p>