title: Using the contents of a file while using Spawn Child Process
body: <p>I am having some trouble properly using the spawn child process function in a node.js Electron application.</p>
  
  <p>When I type the following command into my terminal, everything works as expected:</p>
  
  <pre><code>AtomicParsley 'filePath' --rDNSatom "$(cat /tmp/xmlMOVI.txt)" name=iTunMOVI domain=com.apple.iTunes
  </code></pre>
  
  <p>This changes the iTunMOVI atom in the metadata of an mp4 file to the contents of my temp text file. However, when I run this: </p>
  
  <pre><code>var cmd = 'AtomicParsley 'filePath' --rDNSatom "$(cat /tmp/xmlMOVI.txt)" name=iTunMOVI domain=com.apple.iTunes
  spawn('AtomicParsley', arguments);
  </code></pre>
  
  <p>the resulting mp4 file has the string '$(cat /tmp/xmlMOVI.txt)' instead of the contents of the file. Am I doing something incorrectly?</p>
  
  <p>Thanks!</p>