title: Script bash always running
body: <p>I want to create a simple bash script that prints a text every 5 minutes.
  Script will be launched at the boot.</p>
  
  <pre><code>#!/bin/bash
  while true ; do
  echo "You received a new mail"
  sleep 300
  done
  </code></pre>
  
  <p>I tried to use nohup like this </p>
  
  <pre><code>nohup script.sh 
  </code></pre>
  
  <p>But the output is redirected to nohup.out, I don't want it and the process is not executed in background, it's working until I leave with ctrl+C</p>