title: Trigger an URL with a cron job
body: <p>I'm working on a Symfony 3 website and I need to call a URL of my website with a cron job.</p>
  <p>My website is hosted on OVH where I can configure my cron job.</p>
  <p>For now, I have setup the command : <code>./demo/Becowo/batch/emailNewUser.php</code></p>
  <p>emailNewUser.php content :</p>
  <pre><code>&lt;?php
  
  header(&quot;Location: https://demo.becowo.com/email/newusers&quot;);
  
  ?&gt;
  </code></pre>
  <p>In the log I have :</p>
  <blockquote>
  <p>[2017-03-07 08:08:04] ## OVH ## END - 2017-03-07 08:08:04.448008 exitcode: 0</p>
  <p>[2017-03-07 09:08:03] ## OVH ## START - 2017-03-07 09:08:03.988105 executing: /usr/local/php5.6/bin/php /homez.2332/coworkinwq/./demo/Becowo/batch/emailNewUser.php</p>
  </blockquote>
  <p>But emails are not sent.
  How should I configure my cron job to execute this URL ?
  Or should I call directly my controller ? How ?</p>