title: How to include nohup inside a bash script?
body: <p>I have a large script called <strong>mandacalc</strong> which I want to always run with the <strong>nohup</strong> command. If I call it from the command line as:</p>
  
  <pre><code>nohup mandacalc &amp;
  </code></pre>
  
  <p>everything runs swiftly. But, if I try to include <strong>nohup</strong> inside my command, so I don't need to type it everytime I execute it, I get an error message.</p>
  
  <p>So far I tried these options:</p>
  
  <pre><code>nohup (
  command1
  ....
  commandn
  exit 0
  )
  </code></pre>
  
  <p>and also:</p>
  
  <pre><code>nohup bash -c "
  command1
  ....
  commandn
  exit 0
  " # and also with single quotes.
  </code></pre>
  
  <p>So far I only get error messages complaining about the implementation of the <strong>nohup</strong> command, or about other quotes used inside the script.</p>
  
  <p>cheers.</p>