title: nodejs child_process spawn command input file
body: <p>I would like to run the following code in nodejs</p>
  
  <pre><code>$ ./a.out &lt; inputfile.txt
  </code></pre>
  
  <p>So I wrote the following code.</p>
  
  <pre><code>var run = spawn('./a.out', ['&lt; input.txt']);
  var run = spawn('./a.out &lt; input.txt');
  </code></pre>
  
  <p>I tried this, but it did not work. </p>
  
  <p>What I want to do is to input <code>input.txt</code> in<code>a.out</code></p>
  
  <p>how can i do?</p>