title: run the script every 30 minutes bash
body: <p>I want to run the script every 30 minutes with cron but I have problem with my code.
  In every 30 min I have to kill old script and run it again. I have somethink like this, but it is not working:</p>
  
  <pre><code>    cd /var/www/scripts
      pkill -f bot
      now="$(date +%Y%m%d%H%M%S)"
      screen -S bot 
      node mybot.js &gt;&gt; logi/logi_$now.txt
  </code></pre>