title: Setup Cron For a Route in Zend Franework 2
body: <p>I am trying to setup a cron for a rout to send email on specific route defines in my module:</p>
  
  <p>the route is as follows:</p>
  
  <pre><code>'company-testing' =&gt; array( //Company Invoice Page
              'type' =&gt; 'Segment',
              'options' =&gt; array(
                  'route' =&gt; '/account/company-testing[/:action]',
                  'defaults' =&gt; array(
                      'controller' =&gt; 'Company\Controller\CouponOrder',
                      'action' =&gt; 'tempTesty',
                  ),
              ),
              'may_terminate' =&gt; true,
          ),
  </code></pre>
  
  <p>My  page url for this route is as follows as per the above configuration:</p>
  
  <pre><code>http://shop.projekte-web.com/reisesparer/public/account/company-testing
  </code></pre>
  
  <p>So I have tried to setup the cron through CLI in the following way but it is not working and not sending email with specified cron time.</p>
  
  <p>but if i directly hit the route it generate the email and successfully send it.</p>
  
  <p>CRON SETUP:</p>
  
  <pre><code>* * * * * /usr/bin/php /absolute_path_to_my_project/public /account/company-testing &gt; / dev / null 2&gt; &amp; 1
  </code></pre>
  
  <p>Any help regarding this issue?</p>