title: Bash exec write output to logfile and write PID to seperate file
body: <p>I got a problem in the understanding of BASH, writing the output of exec command to a logfile &amp; write the PID to a seperate file.
  That's what I tried so far:</p>
  
  <pre><code>exec ./node -connect-manager -manager-address $MANAGER_IP:5998 -manager-web $MANAGER_IP:8000 &gt;&gt; /var/log/skywirenode.log &gt;&gt; echo $$ &gt; /home/odrod420/skywireScript/node.pid &amp;
  </code></pre>
  
  <p>Has anybody got an idea on what I am thinking wrong?</p>
  
  <p>Thanks in advance!</p>