Codeigniter Cron - "The controller/method pair you requested was not found"
<p>I am looking for a bit of help. I have an app in codeigniter that I'm trying to implement a cron job to automate a method in my controller to run every hour or so... </p>

<p>I have a ton of code on the page in question but my error is "The controller/method pair you requested was not found." </p>

<p>Cron command (from terminal) is: php index.php cron index</p>

<p>Controller (shortened. I removed the other methods not involved with my question):</p>

<pre><code>include('application/libraries/Twilio.php');
require_once 'application/third_party/Infusionsoft/infusionsoft.php';

class Cron extends CI_Controller{

public $pagination_config;
public $total_rows;
private $users_table_name;
private $review_sites_table_name;
private $ci;
public $customer_reviews_info;

function __construct() {
    parent::__construct();
    $this-&gt;ci = &amp; get_instance();
    $this-&gt;load-&gt;database();
    $this-&gt;load-&gt;helper('url');
    $this-&gt;load-&gt;helper(array('form', 'url'));
    $this-&gt;load-&gt;helper('security');
    $this-&gt;load-&gt;library('form_validation');
    $this-&gt;load-&gt;library('pagination');
    $this-&gt;load-&gt;library('tank_auth');
    $this-&gt;lang-&gt;load('tank_auth');
    $this-&gt;load-&gt;model('CronModel');
    $this-&gt;load-&gt;library('simple_html_dom');
    $this-&gt;load-&gt;config('twilio', TRUE);

    $this-&gt;AccountSid = $this-&gt;config-&gt;item('account_sid', 'twilio');
    $this-&gt;AuthToken = $this-&gt;config-&gt;item('auth_token', 'twilio');

    $this-&gt;users_table_name = $this-&gt;ci-&gt;config-&gt;item('users_table_name', 'tank_auth');
    $this-&gt;review_sites_table_name = $this-&gt;ci-&gt;config-&gt;item('review_sites_table_name', 'tank_auth');
    $this-&gt;customer_reviews_info = $this-&gt;ci-&gt;config-&gt;item('customer_reviews_info', 'tank_auth');
}

  public function index()
  {
    echo "Hello, World" . PHP_EOL;
  }

}
</code></pre>

<p>The controller file name is cron.php. If I run the url in a browser it works fine. If I try to use the terminal I get the error. I feel I've researched a bunch and have not had any luck. I appreciate any help I can get. I'm not sure what other information you might need to help me but if you ask I will get you what you need to help me.</p>