title: Laravel scheduled task is not running with Cron, but works with artisan
body: <p>I have created scheduled task and it's running smoothley with command:</p>
  
  <pre><code>php artisan schedule:run
  </code></pre>
  
  <p>Also I'm able to run it with command:</p>
  
  <pre><code>php /var/www/my.app/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>But when I try to run </p>
  
  <pre><code>* * * * * php /var/www/my.app/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>as it described in Laravel doc's here: <a href="https://laravel.com/docs/5.5/scheduling" rel="nofollow noreferrer">https://laravel.com/docs/5.5/scheduling</a>
  - nothing happends. If I remove </p>
  
  <pre><code>&gt;&gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>(which is here to hide output). I'm getting:</p>
  
  <pre><code>Command not found
  </code></pre>
  
  <p>Thanks for any help.</p>
  
  <p>Just in case I used this command to add line to cron:</p>
  
  <pre><code>(crontab -l ; echo "* * * * * php /var/www/bmon.app/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1")| crontab -
  </code></pre>
  
  <p>Nice description here: <a href="https://askubuntu.com/questions/408611/how-to-remove-or-delete-single-cron-job-using-linux-command">https://askubuntu.com/questions/408611/how-to-remove-or-delete-single-cron-job-using-linux-command</a></p>