title: Trying to run a python script from nodeJS and can't figure out the argument list
body: <p>I have to run a python script from my node project that converts a .csv file to a .txt file.</p>
  <p>The command for running the python script on the terminal is</p>
  <pre><code>python3 csv_to_rdf.py &quot;pathToFile&quot; &quot;date&quot; &gt; &quot;nameOfNewFile.txt&quot;
  eg. python3 csv_to_rdf.py modifiedCSV.csv 08122022 &gt; test.txt
  </code></pre>
  <p>I am using the <code>child_process.spawn()</code> method in nodeJS to run the script but I can't figure out the args.</p>
  <p>When I use the following code snippet:</p>
  <p><a href="https://i.stack.imgur.com/OAty1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OAty1.png" alt="enter image description here" /></a></p>
  <p>I get the following error message:</p>
  <p><a href="https://i.stack.imgur.com/yTORi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yTORi.png" alt="enter image description here" /></a></p>
  <p>My question is how do I send in &quot;<strong>&gt; test.txt</strong>&quot; in my <code>spawn()</code> method?</p>