Welcome Guest, Not a member yet? Register   Sign In
Cron Job and CLI
#1

I have setup a cron job and call it like this:

php /home/sitename/public_html/www/index.php controllername method

If I connect to my server using SSH (putty) and call this command, everything runs just fine.

But when my account cron job runs (using same command) I receive an email from my server displaying the HTML from my home page. 

It appears it is ignoring the controller and method calls. 

CI_VERSION = '3.1.9';
My server is CentOS 6 WHM CP.

Any ideas what is happening?
Reply


Messages In This Thread
Cron Job and CLI - by Roddyguy - 02-02-2020, 10:17 AM
RE: Cron Job and CLI - by Goddard - 02-04-2020, 12:08 PM
RE: Cron Job and CLI - by Roddyguy - 02-05-2020, 08:03 AM
RE: Cron Job and CLI - by dave friend - 02-05-2020, 09:23 AM
RE: Cron Job and CLI - by Roddyguy - 02-05-2020, 09:48 AM
RE: Cron Job and CLI - by versigtm - 04-08-2020, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB