CLI call behaves incorrectly when called from cron, yet works fine from command line |
[eluser]bientek[/eluser]
CI 2.1.2 installed. From the command line, I can run Code: php /home/myusername/public_html/mysite/index.php cron_jobs It works as expected, executing the cron_jobs controller. Yet, when this statement is moved over to cron like so Code: */1 * * * * php /home/myusername/public_html/mysite/index.php cron_jobs Am I doing it wrong? My cron tasks worked using file_get_contents() in 1.7.2, prior to attempting the new CLI-style way of calling the controller. Edit: I have already considered http://stackoverflow.com/questions/77984...ntab-entry and tried including different absolute paths to php (/usr/bin/php and also /usr/local/bin/php) |
Messages In This Thread |
CLI call behaves incorrectly when called from cron, yet works fine from command line - by El Forum - 08-28-2012, 02:33 PM
CLI call behaves incorrectly when called from cron, yet works fine from command line - by El Forum - 08-30-2012, 06:13 AM
|