title: Crontab @reboot not executed
body: <p>Hy,</p>
  <p>I am having some troubles setting up my cronjob on my raspberry pi.
  I am sure that my code runs fine, but when i try to run my cronjob it does nothing.</p>
  <p>i have used the following command to open the crontab:</p>
  <pre><code>sudo crontab -e
  </code></pre>
  <p>then I have added the following line of code to it:</p>
  <pre><code>@reboot sleep 10 | node /PATH/index.js &amp;
  </code></pre>
  <p>I have also tried to do this:</p>
  <pre><code>@reboot sleep 10 &amp;&amp; node /PATH/index.js &amp;
  </code></pre>
  <p>Then I save the file and exit the file.
  Then I reboot the file..
  When the raspberry pi is back on i do the following command to see if the cronjob is being executed:</p>
  <p>But the cronjob isnt being executed.</p>
  <pre><code>grep cron /var/log/syslog
  </code></pre>
  <p>I get the folowing:
  <a href="https://i.stack.imgur.com/nXHuK.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>As you can see it says that it is running the @reboot cronjobs but it is not working at the moment.
  My friend has 100% the same code and did the same thing as i did and it works on his raspberry pi but not on mine....</p>
  <p>Thanks</p>