title: Having Cron job execute script in background and run for 15 hours
body: <p>I have a PHP script that takes about 15 hours to run and I have to run it once a week. The script downloads and extracts the contents of a massive (70gb) CSV file into our database.</p>
  
  <p>I need the script to start running every Sunday at 6 PM and to keep running until it's finished processing the file. </p>
  
  <p>My plan is to create a bash file <strong>cron.sh</strong> that has the following:</p>
  
  <pre><code>nohup php /var/www/html/cron.php &gt; /var/www/html/outputs/`date "+%Y-%m-%d %H:%M:%S"`.log
  </code></pre>
  
  <p>And the cron being:</p>
  
  <pre><code>0 18 * * 0 /var/www/html/cron.sh
  </code></pre>
  
  <p>How would I be able to improve this?</p>