C4f1151075b447779af31e99d6cf70e2c6eb47ac
By:
newbie

Need some help on cron job.

August 16, 2015 2k views
Nginx PHP

Hello,

as per the guideline from a post of this community i have set my cron job like this.
0 6 * * * curl https://mysite.com/index.php/abc/corn_job > /tmp/croncheck2 2>&1

and i saw on log that its executing correctly on time.

but unfortunately its not executing the task that my developer set to process on that file.

let me explain a bit in details.

i have a php application installed on my subdomain and that file(corn_job) is used for deduct credits of my clients account on appropriate time.

i spoke with with my developer and he says if he setup cron job on his hosting credits are deducting without any problem. but thats on his shared hosting with cpanel and and setting a cron job is really easy there.

the first thing i m suspecting is the execute command "curl" should it be curl in my case or something else?

thanks in advance

1 comment
Be the first one to answer this question.