user300
1
the wiki
suggests to use:
“your-domain.com/invoices/cron/recur/your-cron-key-here”
but that directory does not exist on the server “/invoices/cron/recur/”
/bin/sh: http://your-domain.com/invoice/invoices/cron/recur/your-cron-key-here: No such file or directory
can anyone help? is this a version issue?
M4rt1n
2
If you wanna call a external request you need to use curl
or wget
So try something like this:
0 0 * * * curl https://your-domain.com/invoices/cron/recur/your-cron-key-here >/dev/null 2>&1
or
0 0 * * * wget -O - https://yoursite.com/invoices/cron/recur/your-cron-key >/dev/null 2>&1
that should work. Before pasting it intop a cron try and test in in your commandline
user300
3
hi thanks for the reply,
sorry i dont understand? if i look in my hosting that directory isn’t there? /invoices/cron/recur/
i dont understand what the issue is?
i am also using cpanel to insert the cron job
user300
4
is the DIR suppose to exist?
M4rt1n
5
Merry Xmas!
It is just like I wrote before. There is just one was to implement this correct and this is how to do it:
You can also read this in the Wiki.
Here: LINK1
Here: LINK2
user300
7
hello, i tried both methods. they did not work
is the DIR suppose to exist?
i am on shared hosting using cpanel
thanks