abilham
(Andrewbilham)
1
Good Morning,
I have been trying to set up a Cron Job. I have an action working locally through CMD and the Console but my hosting provider 1&1 wants a URL to run.
Ideally i would get it to run an action in backend/controllers rather than rewrite the action as its quite a large code block.
so questions:
- Can a cron job run an action in a backend controller
- If not what URL would i use to run the Console action
Thank you!
samdark
(Alexander Makarov)
2
What do you mean by “wants a URL to run”?
Can a cron job run an action in a backend controller
Technically yes. You can request it via curl
or wget
.
If not what URL would i use to run the Console action
There’s nothing built-in for it because such restriction isn’t common (are you are sure you understood them correctly?).
abilham
(Andrewbilham)
3
HI @samdark,
yeah it has to be an actual site URL but i have it working now! after some tinkering.
It uses wget
Thank you